KParser

Trait KParser 

Source
pub trait KParser {
    // Required method
    fn parse<E>(
        &self,
        stream: &mut KTokenStream,
        tracer: &dyn KParserTracer,
    ) -> Result<E>;
}
Expand description

KParser generic parser that it is used to parse any kind of token stream.

Required Methods§

Source

fn parse<E>( &self, stream: &mut KTokenStream, tracer: &dyn KParserTracer, ) -> Result<E>

try to parse the token stream inside the type E, and if there is no option for kparser, return an error.

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§