pub struct LuaDeclIndex { /* private fields */ }Implementations§
Source§impl LuaDeclIndex
impl LuaDeclIndex
pub fn new() -> Self
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>
Trait Implementations§
Source§impl Debug for LuaDeclIndex
impl Debug for LuaDeclIndex
Source§impl Default for LuaDeclIndex
impl Default for LuaDeclIndex
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