rust/src/libcore/from_str.rs

9 lines
147 B
Rust
Raw Normal View History

//! The trait for types that can be created from strings
2012-09-03 17:59:37 -05:00
use option::Option;
2012-09-03 16:14:17 -05:00
trait FromStr {
static fn from_str(s: &str) -> Option<self>;
}
2012-09-03 17:59:37 -05:00