pub struct TableType {
pub element_type: WasmType,
pub size_initial: u64,
pub size_max: Option<u64>,
/* private fields */
}Fields§
§element_type: WasmType§size_initial: u64§size_max: Option<u64>Implementations§
Source§impl TableType
impl TableType
pub const fn empty() -> Self
Sourcepub const fn new(
element_type: WasmType,
size_initial: u64,
size_max: Option<u64>,
) -> Self
pub const fn new( element_type: WasmType, size_initial: u64, size_max: Option<u64>, ) -> Self
Create a table with 32-bit indices.
Sourcepub const fn new64(
element_type: WasmType,
size_initial: u64,
size_max: Option<u64>,
) -> Self
pub const fn new64( element_type: WasmType, size_initial: u64, size_max: Option<u64>, ) -> Self
Create a table with 64-bit indices.
pub const fn arch(&self) -> MemoryArch
Trait Implementations§
impl Copy for TableType
Source§impl<'de> Deserialize<'de> for TableType
impl<'de> Deserialize<'de> for TableType
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
impl Eq for TableType
impl StructuralPartialEq for TableType
Auto Trait Implementations§
impl Freeze for TableType
impl RefUnwindSafe for TableType
impl Send for TableType
impl Sync for TableType
impl Unpin for TableType
impl UnsafeUnpin for TableType
impl UnwindSafe for TableType
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