rust/src/libcore/from_str.rs
2012-09-20 17:18:18 -07:00

13 lines
242 B
Rust

//! The trait for types that can be created from strings
// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
use option::Option;
trait FromStr {
static fn from_str(s: &str) -> Option<self>;
}