pub trait LangLexer<'i>: HasLexerError + Sized {
type Input: 'i;
type Iter: LangLexerIterator + HasLexerError<Error = Self::Error>;
// Required methods
fn new(source: Self::Input, opts: &ParseOptions) -> Self;
fn run(self, ctx: ParseContext) -> Self::Iter;
}
Expand description
GLSL language lexer
Required Associated Types§
Sourcetype Iter: LangLexerIterator + HasLexerError<Error = Self::Error>
type Iter: LangLexerIterator + HasLexerError<Error = Self::Error>
Type of the iterator returned by this lexer
Required Methods§
Sourcefn new(source: Self::Input, opts: &ParseOptions) -> Self
fn new(source: Self::Input, opts: &ParseOptions) -> Self
Sourcefn run(self, ctx: ParseContext) -> Self::Iter
fn run(self, ctx: ParseContext) -> Self::Iter
Run the lexer
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.