Enum wac_types::CoreExtern
source · pub enum CoreExtern {
Func(CoreFuncType),
Table {
element_type: CoreRefType,
initial: u32,
maximum: Option<u32>,
},
Memory {
memory64: bool,
shared: bool,
initial: u64,
maximum: Option<u64>,
},
Global {
val_type: CoreType,
mutable: bool,
},
Tag(CoreFuncType),
}Expand description
Represents a core extern imported or exported from a core module.
Variants§
Func(CoreFuncType)
The item is a function.
Table
The item is a table.
Fields
§
element_type: CoreRefTypeThe table’s element type.
Memory
The item is a memory.
Fields
§
memory64: boolWhether or not this is a 64-bit memory, using i64 as an index. If this is false it’s a 32-bit memory using i32 as an index.
This is part of the memory64 proposal in WebAssembly.
Whether or not this is a “shared” memory, indicating that it should be
send-able across threads and the maximum field is always present for
valid types.
This is part of the threads proposal in WebAssembly.
Global
The item is a global.
Tag(CoreFuncType)
The item is a tag.
Trait Implementations§
source§impl Clone for CoreExtern
impl Clone for CoreExtern
source§fn clone(&self) -> CoreExtern
fn clone(&self) -> CoreExtern
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 CoreExtern
impl Debug for CoreExtern
source§impl Display for CoreExtern
impl Display for CoreExtern
source§impl From<GlobalType> for CoreExtern
impl From<GlobalType> for CoreExtern
source§fn from(ty: GlobalType) -> Self
fn from(ty: GlobalType) -> Self
Converts to this type from the input type.
source§impl From<MemoryType> for CoreExtern
impl From<MemoryType> for CoreExtern
source§fn from(ty: MemoryType) -> Self
fn from(ty: MemoryType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoreExtern
impl RefUnwindSafe for CoreExtern
impl Send for CoreExtern
impl Sync for CoreExtern
impl Unpin for CoreExtern
impl UnwindSafe for CoreExtern
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