pub trait PegParserAdvanced<TUD>: Sized {
// Required method
fn parse_advanced<TT: ParseTracer>(
s: &str,
settings: &ParseSettings,
user_context: TUD,
) -> Result<Self, ParseError>;
}Expand description
The trait that is actually implemented by the generated code.
Should only be used in very specific cases, and PegParser should be
used in all normal cases.
Required Methods§
Sourcefn parse_advanced<TT: ParseTracer>(
s: &str,
settings: &ParseSettings,
user_context: TUD,
) -> Result<Self, ParseError>
fn parse_advanced<TT: ParseTracer>( s: &str, settings: &ParseSettings, user_context: TUD, ) -> Result<Self, ParseError>
Internal function that is actually generated by the grammar compiler, used by the more friendly functions.
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.