Enum cranelift_wasm::Alias
source · [−]pub enum Alias<'a> {
OuterModule {
relative_depth: u32,
index: ModuleIndex,
},
OuterType {
relative_depth: u32,
index: TypeIndex,
},
InstanceExport {
instance: InstanceIndex,
export: &'a str,
},
}
Expand description
An entry in the alias section of a wasm module (from the module linking proposal)
Variants
OuterModule
Fields
relative_depth: u32
The number of modules above us that we’re referencing.
index: ModuleIndex
The module index in the outer module’s index space we’re referencing.
An outer module’s module is being aliased into our own index space.
OuterType
Fields
relative_depth: u32
The number of modules above us that we’re referencing.
index: TypeIndex
The type index in the outer module’s index space we’re referencing.
An outer module’s type is being aliased into our own index space
Note that the index here is in the outer module’s index space, not our own.
InstanceExport
Fields
instance: InstanceIndex
The index we’re aliasing.
export: &'a str
The nth export that we’re inserting into our own index space locally.
A previously created instance is having one of its exports aliased into our index space.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more