pub trait Parser: Display + FromStr {
// Required method
fn parse(string: &str) -> ParserResult<'_, Self>
where Self: Sized;
}Expand description
Operations to parse a string literal into an object.
Required Methods§
Sourcefn parse(string: &str) -> ParserResult<'_, Self>where
Self: Sized,
fn parse(string: &str) -> ParserResult<'_, Self>where
Self: Sized,
Parses a string literal into an object.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".