pub trait ParseWithArgs<T, O = Self> {
// Required method
fn parse_with(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
args: T,
) -> Option<O>;
}Expand description
Required Methods§
Sourcefn parse_with(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
args: T,
) -> Option<O>
fn parse_with( token: Token, lexer: &mut Lexer<'_>, errors: &mut Vec<ParseError>, args: T, ) -> Option<O>
Try parsing the current item, starting from the passed token with the passed arguments.
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.