pub struct TableType {
pub element_type: RefType,
pub table64: bool,
pub initial: u64,
pub maximum: Option<u64>,
}
Expand description
Represents a table’s type.
Fields§
§element_type: RefType
The table’s element type.
table64: bool
Whether or not this is a 64-bit table.
This is part of the memory64 proposal in WebAssembly.
initial: u64
Initial size of this table, in elements.
For 32-bit tables (when table64
is false
) this is guaranteed to
be at most u32::MAX
for valid types.
maximum: Option<u64>
Optional maximum size of the table, in elements.
For 32-bit tables (when table64
is false
) this is guaranteed to
be at most u32::MAX
for valid types.
Implementations§
Trait Implementations§
source§impl<'a> FromReader<'a> for TableType
impl<'a> FromReader<'a> for TableType
source§fn from_reader(
reader: &mut BinaryReader<'a>,
) -> Result<TableType, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a>, ) -> Result<TableType, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.