pub struct Lexer<'i> {
inner: Lexer<'i>,
opts: ParseOptions,
}
Expand description
glsl-lang-pp memory lexer
Fields§
§inner: Lexer<'i>
§opts: ParseOptions
Implementations§
Source§impl<'i> Lexer<'i>
impl<'i> Lexer<'i>
pub(crate) fn new(source: &'i str, opts: &ParseOptions) -> Self
fn with_context(self, ctx: ParseContext) -> LexerIterator<'i> ⓘ
Trait Implementations§
Source§impl HasLexerError for Lexer<'_>
impl HasLexerError for Lexer<'_>
Source§type Error = LexicalError
type Error = LexicalError
Type of lexical analysis error
Auto Trait Implementations§
impl<'i> Freeze for Lexer<'i>
impl<'i> RefUnwindSafe for Lexer<'i>
impl<'i> Send for Lexer<'i>
impl<'i> Sync for Lexer<'i>
impl<'i> Unpin for Lexer<'i>
impl<'i> UnwindSafe for Lexer<'i>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more