Enum wasm_encoder::Alias
source · pub enum Alias<'a> {
InstanceExport {
instance: u32,
kind: ComponentExportKind,
name: &'a str,
},
CoreInstanceExport {
instance: u32,
kind: ExportKind,
name: &'a str,
},
Outer {
kind: ComponentOuterAliasKind,
count: u32,
index: u32,
},
}
Expand description
Different forms of aliases that can be inserted into a
ComponentAliasSection
.
Variants§
InstanceExport
An alias of a component instance export.
Fields
§
kind: ComponentExportKind
The kind of item that’s being extracted from the component instance.
CoreInstanceExport
Same as InstanceExport
, but for core instances.
Outer
Aliasing an item from an outer component.
Fields
§
kind: ComponentOuterAliasKind
The kind of item being aliased, either a type or a component.
Trait Implementations§
impl<'a> Copy for Alias<'a>
Auto Trait Implementations§
impl<'a> Freeze for Alias<'a>
impl<'a> RefUnwindSafe for Alias<'a>
impl<'a> Send for Alias<'a>
impl<'a> Sync for Alias<'a>
impl<'a> Unpin for Alias<'a>
impl<'a> UnwindSafe for Alias<'a>
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
)