Trait TryParseWithArgs

Source
pub trait TryParseWithArgs<T, O = Self, O2 = O>
where O2: ParseWithArgs<T, O>,
{ // Provided method fn try_parse_with( lexer: &mut Lexer, errors: &mut Vec<Error>, args: T, ) -> Option<O> { ... } }
Expand description

A wrapper trait for ParseWithArgs where it would reset the lexer’s state upon failure.

Provided Methods§

Source

fn try_parse_with( lexer: &mut Lexer, errors: &mut Vec<Error>, args: T, ) -> Option<O>

Try parsing and reset the lexer’s state upon failure.

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.

Implementors§