pub trait ParseAll: Sized {
type Err: From<ShortBuf> + Fail;
// Required method
fn parse_all(parser: &mut Parser, len: usize) -> Result<Self, Self::Err>;
}
Expand description
A type that can extract a value from a given part of a parser.
This trait is used when the length of a value is known before and the
value is expected to stretch over this entire length. There are types
that can implement ParseAll
but not Parse
because they simply take
all remaining bytes.
Required Associated Types§
Required Methods§
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.