Read

Trait Read 

Source
pub trait Read<'input, Input: PrintError>: Sized {
    // Required method
    fn parse(&self, input: &'input [Input]) -> Result<Self, String>;
}
Expand description

Read a series of items (of generic type Input) into this type.

Required Methods§

Source

fn parse(&self, input: &'input [Input]) -> Result<Self, String>

Parse a list of Inputs into this type.

§Errors

If parsing fails, if we run out of input, or if we have leftover input afterward.

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.

Implementors§