pub struct LuaDeclIndex { /* private fields */ }Implementations§
Source§impl LuaDeclIndex
impl LuaDeclIndex
pub fn new() -> Self
pub fn add_global_decl(&mut self, name: &str, decl_id: LuaDeclId)
pub fn add_decl_tree(&mut self, tree: LuaDeclarationTree)
pub fn get_decl_tree(&self, file_id: &FileId) -> Option<&LuaDeclarationTree>
pub fn get_decl(&self, decl_id: &LuaDeclId) -> Option<&LuaDecl>
pub fn get_decl_mut(&mut self, decl_id: &LuaDeclId) -> Option<&mut LuaDecl>
pub fn get_global_decl_type(&self, key: &LuaMemberKey) -> Option<LuaType>
pub fn get_global_decl_id(&self, key: &LuaMemberKey) -> Option<LuaDeclId>
pub fn get_global_decls(&self) -> Vec<LuaDeclId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaDeclIndex
impl RefUnwindSafe for LuaDeclIndex
impl Send for LuaDeclIndex
impl Sync for LuaDeclIndex
impl Unpin for LuaDeclIndex
impl UnwindSafe for LuaDeclIndex
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