pub trait PartialParse<Input>: Sized {
type Error;
// Required method
fn partial_parse(input: Input) -> PartialParseResult<Self, Self::Error>;
}Expand description
Partially parse an input.
Required Associated Types§
Required Methods§
Sourcefn partial_parse(input: Input) -> PartialParseResult<Self, Self::Error>
fn partial_parse(input: Input) -> PartialParseResult<Self, Self::Error>
Parse an input until completion or when an error occurs.
The complete or partial result can be recovered regardless of errors.
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.