pub struct TypeModule {
pub imports: IndexMap<(String, String), EntityType>,
pub exports: IndexMap<String, EntityType>,
}
Expand description
The type of a module in the component model.
Note that this is not to be confused with TypeComponent
below. This is
intended only for core wasm modules, not for components.
Fields§
§imports: IndexMap<(String, String), EntityType>
The values that this module imports.
Note that the value of this map is a core wasm EntityType
, not a
component model TypeRef
. Additionally note that this reflects the
two-level namespace of core WebAssembly, but unlike core wasm all import
names are required to be unique to describe a module in the component
model.
exports: IndexMap<String, EntityType>
The values that this module exports.
Note that the value of this map is the core wasm EntityType
to
represent that core wasm items are being exported.
Trait Implementations§
source§impl Default for TypeModule
impl Default for TypeModule
source§fn default() -> TypeModule
fn default() -> TypeModule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TypeModule
impl<'de> Deserialize<'de> for TypeModule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeModule
impl RefUnwindSafe for TypeModule
impl Send for TypeModule
impl Sync for TypeModule
impl Unpin for TypeModule
impl UnwindSafe for TypeModule
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