Trait glsl_lang_lexer::LangLexer
source · 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
Object Safety§
This trait is not object safe.