pub struct Module {
pub id: String,
pub files: FxHashMap<u32, File>,
pub definitions: FxHashMap<Symbol, Definition>,
}Fields§
§id: String§files: FxHashMap<u32, File>file ID -> file. Source and declaration files are classified by File::is_d_lis.
definitions: FxHashMap<Symbol, 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 source_files(&self) -> impl Iterator<Item = &File>
pub fn source_file_entries(&self) -> impl Iterator<Item = (&u32, &File)>
pub fn typedef_files(&self) -> impl Iterator<Item = &File>
pub fn is_typedef(&self, file_id: u32) -> bool
pub fn all_imports(&self) -> Vec<FileImport>
pub fn is_internal(&self) -> bool
pub fn is_empty_stub(&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