pub struct LuaTypeIndex { /* private fields */ }Implementations§
Source§impl LuaTypeIndex
impl LuaTypeIndex
pub fn new() -> Self
pub fn add_file_namespace(&mut self, file_id: FileId, namespace: String)
pub fn get_file_namespace(&self, file_id: &FileId) -> Option<&String>
pub fn add_file_using_namespace(&mut self, file_id: FileId, namespace: String)
pub fn get_file_using_namespace(&self, file_id: &FileId) -> Option<&Vec<String>>
pub fn add_type_decl(&mut self, file_id: FileId, type_decl: LuaTypeDecl)
pub fn find_type_decl( &self, file_id: FileId, name: &str, ) -> Option<&LuaTypeDecl>
pub fn find_type_decls( &self, file_id: FileId, prefix: &str, ) -> HashMap<String, Option<LuaTypeDeclId>>
pub fn add_generic_params( &mut self, decl_id: LuaTypeDeclId, params: Vec<(String, Option<LuaType>)>, )
pub fn get_generic_params( &self, decl_id: &LuaTypeDeclId, ) -> Option<&Vec<(String, Option<LuaType>)>>
pub fn add_super_type( &mut self, decl_id: LuaTypeDeclId, file_id: FileId, super_type: LuaType, )
pub fn get_super_types(&self, decl_id: &LuaTypeDeclId) -> Option<Vec<LuaType>>
pub fn get_type_decl(&self, decl_id: &LuaTypeDeclId) -> Option<&LuaTypeDecl>
pub fn get_all_types(&self) -> Vec<&LuaTypeDecl>
pub fn get_type_decl_mut( &mut self, decl_id: &LuaTypeDeclId, ) -> Option<&mut LuaTypeDecl>
pub fn bind_type(&mut self, owner: LuaTypeOwner, cache: LuaTypeCache)
pub fn get_type_cache(&self, owner: &LuaTypeOwner) -> Option<&LuaTypeCache>
Trait Implementations§
Source§impl Debug for LuaTypeIndex
impl Debug for LuaTypeIndex
Auto Trait Implementations§
impl Freeze for LuaTypeIndex
impl RefUnwindSafe for LuaTypeIndex
impl Send for LuaTypeIndex
impl Sync for LuaTypeIndex
impl Unpin for LuaTypeIndex
impl UnwindSafe for LuaTypeIndex
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