Trait flexi_parse::Parse
source · pub trait Parse: Sized {
// Required method
fn parse(input: ParseStream<'_>) -> Result<Self>;
}
Expand description
Parsing interface for types with a default parsing method.
Required Methods§
sourcefn parse(input: ParseStream<'_>) -> Result<Self>
fn parse(input: ParseStream<'_>) -> Result<Self>
Parses the input into this type.
Errors
This function returns an error if source
doesn’t contain a valid instance
of T
.
Object Safety§
This trait is not object safe.