Skip to main content

Parse

Trait Parse 

Source
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§

Source

type Error

The error type.

Required Methods§

Source

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".

Implementors§