pub struct Module {
pub id: String,
pub files: FxHashMap<u32, File>,
pub typedefs: FxHashMap<u32, File>,
pub definitions: FxHashMap<EcoString, Definition>,
}Fields§
§id: String§files: FxHashMap<u32, File>file ID -> .lis file
typedefs: FxHashMap<u32, File>file ID -> .d.lis file (declarations only)
definitions: FxHashMap<EcoString, Definition>qualified name -> definition
Implementations§
Source§impl Module
impl Module
pub fn new(id: &str) -> Module
pub fn nominal() -> Module
pub fn is_public(&self, qualified_name: &str) -> bool
pub fn get_file(&self, file_id: u32) -> Option<&File>
pub fn file_ids(&self) -> impl Iterator<Item = u32> + '_
pub fn get_typedef_by_id(&self, file_id: u32) -> Option<&File>
pub fn get_typedef_by_id_mut(&mut self, file_id: u32) -> Option<&mut File>
pub fn typedef_imports(&self) -> Vec<FileImport>
pub fn all_typedefs(&self) -> impl Iterator<Item = &File>
pub fn is_internal(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl !UnwindSafe for Module
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