Trait strp::TryParse

source ·
pub trait TryParsewhere
    Self: Sized,
{ type Err; fn try_parse(
        iter: &mut impl Iterator<Item = u8>
    ) -> Result<Self, TryParseError<Self::Err>>; }
Expand description

Allows a type to be parsed through the try_parse, parse, try_scan and scan macros.

Required Associated Types§

Error type used in the TryParseError.

Required Methods§

Attempts to parse the type using an u8 iterator.

Implementations on Foreign Types§

Implementors§