pub trait Parse<'s>: Sized {
type Error;
// Required method
fn parse_from(cursor: &mut Cursor<'s>) -> Result<Self, Self::Error>;
}Expand description
Types that could be parsed from a borrowed string cursor.
Required Associated Types§
Required Methods§
Sourcefn parse_from(cursor: &mut Cursor<'s>) -> Result<Self, Self::Error>
fn parse_from(cursor: &mut Cursor<'s>) -> Result<Self, Self::Error>
Parse from the given string cursor.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".