pub struct LuaLexer<'a> { /* private fields */ }Implementations§
Source§impl<'a> LuaLexer<'a>
impl<'a> LuaLexer<'a>
pub fn new( reader: Reader<'a>, lexer_config: LexerConfig, errors: Option<&'a mut Vec<LuaParseError>>, ) -> Self
pub fn new_with_state( reader: Reader<'a>, state: LexerState, lexer_config: LexerConfig, errors: Option<&'a mut Vec<LuaParseError>>, ) -> Self
pub fn tokenize(&mut self) -> Vec<LuaTokenData>
pub fn get_state(&self) -> LexerState
pub fn continue_with_new_reader( &mut self, reader: Reader<'a>, ) -> Vec<LuaTokenData>
Auto Trait Implementations§
impl<'a> Freeze for LuaLexer<'a>
impl<'a> RefUnwindSafe for LuaLexer<'a>
impl<'a> Send for LuaLexer<'a>
impl<'a> Sync for LuaLexer<'a>
impl<'a> Unpin for LuaLexer<'a>
impl<'a> !UnwindSafe for LuaLexer<'a>
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