pub struct ModuleType {
pub imports: IndexMap<(String, String), EntityType>,
pub exports: IndexMap<String, EntityType>,
/* private fields */
}
Expand description
Represents a core module type.
Fields§
§imports: IndexMap<(String, String), EntityType>
The imports of the module type.
exports: IndexMap<String, EntityType>
The exports of the module type.
Implementations§
Source§impl ModuleType
impl ModuleType
Sourcepub fn lookup_import(&self, module: &str, name: &str) -> Option<&EntityType>
pub fn lookup_import(&self, module: &str, name: &str) -> Option<&EntityType>
Looks up an import by its module and name.
Returns None
if the import was not found.
Trait Implementations§
Source§impl Clone for ModuleType
impl Clone for ModuleType
Source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleType
impl Debug for ModuleType
Source§impl TypeData for ModuleType
impl TypeData for ModuleType
Source§type Id = ComponentCoreModuleTypeId
type Id = ComponentCoreModuleTypeId
The identifier for this type data.
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)