rust/src/libcore/from_str.rs

13 lines
242 B
Rust
Raw Normal View History

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