about summary refs log tree commit diff
path: root/src/libcore/from_str.rs
blob: 6867db7c4316f56d1204bb9346cb177d2d240158 (plain)
1
2
3
4
5
6
7
8
//! The trait for types that can be created from strings

use option::Option;

trait FromStr {
    static fn from_str(s: &str) -> Option<self>;
}