Trait std::from_str::FromStr
pub trait FromStr { fn from_str(s: &str) -> Option<Self>; }
A trait to abstract the idea of creating a new instance of a type from a string.
Required Methods
fn from_str(s: &str) -> Option<Self>
Parses a string s
to return an optional value of this type. If the
string is ill-formatted, the None is returned.
Implementors
Path
Path
SocketAddr
IpAddr
impl FromStr for int
impl FromStr for i8
impl FromStr for i16
impl FromStr for i32
impl FromStr for i64
impl FromStr for uint
impl FromStr for u8
impl FromStr for u16
impl FromStr for u32
impl FromStr for u64
impl FromStr for f32
impl FromStr for f64
impl FromStr for bool
impl FromStr for ~str