pub trait FromStr: Sized {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn from_str(s: &str) -> Result<Self, Self::Error>;
}
Expand description

Defines the way to parse the object from a UTF-8 string.

This is like the standard FromStr trait, except that it imposes additional bounds on the error type to make it more usable for aggregation to higher level errors and passing between threads.

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn from_str(s: &str) -> Result<Self, Self::Error>

Implementors§

source§

impl<T> FromStr for Twhere T: FromStr, <T as FromStr>::Err: Error + Send + Sync + 'static,

§

type Error = <T as FromStr>::Err