pub struct TableType { /* private fields */ }
Expand description
A Wasm table descriptor.
Implementations§
Source§impl TableType
impl TableType
Sourcepub fn new64(element: ValType, min: u64, max: Option<u64>) -> Self
pub fn new64(element: ValType, min: u64, max: Option<u64>) -> Self
Creates a new TableType
with a 64-bit index type.
§Note
64-bit tables are part of the Wasm memory64
proposal.
§Panics
If min
is greater than max
.
Sourcepub fn is_64(&self) -> bool
pub fn is_64(&self) -> bool
Returns true
if this is a 64-bit TableType
.
64-bit memories are part of the Wasm memory64
proposal.
Trait Implementations§
Source§impl From<TableType> for ExternType
impl From<TableType> for ExternType
impl Copy for TableType
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 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