Trait Parser

Source
pub trait Parser<'parser> {
    type Value<'a>
       where 'a: 'parser;

    // Required method
    fn parse<'a: 'parser, S>(
        &mut self,
        code: &'a S,
    ) -> ParseResult<Self::Value<'a>>
       where S: SourceFile + ?Sized + 'a;
}

Required Associated Types§

Source

type Value<'a> where 'a: 'parser

Required Methods§

Source

fn parse<'a: 'parser, S>(&mut self, code: &'a S) -> ParseResult<Self::Value<'a>>
where S: SourceFile + ?Sized + 'a,

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§