pub struct Table {
pub initial: u32,
pub maximum: Option<u32>,
pub element_ty: ValType,
pub import: Option<ImportId>,
pub elem_segments: HashSet<Id<Element>, BuildIdHasher>,
pub name: Option<String>,
/* private fields */
}
Expand description
A table in the wasm.
Fields§
§initial: u32
The initial size of this table
maximum: Option<u32>
The maximum size of this table
element_ty: ValType
The type of the elements in this table
import: Option<ImportId>
Whether or not this table is imported, and if so what imports it.
elem_segments: HashSet<Id<Element>, BuildIdHasher>
Active data segments that will be used to initialize this memory.
name: Option<String>
The name of this table, used for debugging purposes in the name
custom section.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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