pub struct ParserConfig<'cache> {
pub level: LuaLanguageLevel,
/* private fields */
}
Fields§
§level: LuaLanguageLevel
Implementations§
Source§impl<'cache> ParserConfig<'cache>
impl<'cache> ParserConfig<'cache>
pub fn new( level: LuaLanguageLevel, node_cache: Option<&'cache mut NodeCache>, ) -> Self
pub fn lexer_config(&self) -> LexerConfig
pub fn support_local_attrib(&self) -> bool
pub fn node_cache(&mut self) -> Option<&mut NodeCache>
Trait Implementations§
Auto Trait Implementations§
impl<'cache> Freeze for ParserConfig<'cache>
impl<'cache> RefUnwindSafe for ParserConfig<'cache>
impl<'cache> Send for ParserConfig<'cache>
impl<'cache> Sync for ParserConfig<'cache>
impl<'cache> Unpin for ParserConfig<'cache>
impl<'cache> !UnwindSafe for ParserConfig<'cache>
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