pub struct ParserConfig<'cache> {
pub level: LuaLanguageLevel,
/* private fields */
}Fields§
§level: LuaLanguageLevelImplementations§
Source§impl<'cache> ParserConfig<'cache>
impl<'cache> ParserConfig<'cache>
pub fn new( level: LuaLanguageLevel, node_cache: Option<&'cache mut NodeCache>, special_like: HashMap<String, SpecialFunction>, non_std_symbols: LuaNonStdSymbolSet, ) -> Self
pub fn lexer_config(&self) -> LexerConfig
pub fn support_local_attrib(&self) -> bool
pub fn node_cache(&mut self) -> Option<&mut NodeCache>
pub fn get_special_function(&self, name: &str) -> SpecialFunction
pub fn with_level(level: LuaLanguageLevel) -> Self
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