pub trait FromTokens: Sized {
type Error;
// Required method
fn from_tokens<'a, I>(tokens: I) -> Result<Self, Self::Error>
where I: Iterator<Item = &'a str>;
}Expand description
A trait for types parsable from an iterator of whitespace delimited tokens.
Implementations are provided for tuples and collections of types implementing FromStr.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.