Struct wasmer_ruby::Wasmer::TableType
source · pub struct TableType;
Expand description
A descriptor for a table in a WebAssembly module.
Tables are contiguous chunks of a specific element, typically a funcref or externref. The most common use for tables is a function table through which call_indirect can invoke other functions.
Implementations§
source§impl TableType
impl TableType
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the type of table.
Example
table_type = Wasmer::TableType.new Wasmer::Type::I32, 7, 42
assert { table_type.type == Wasmer::Type::I32 }
Auto Trait Implementations§
impl RefUnwindSafe for TableType
impl Send for TableType
impl Sync for TableType
impl Unpin for TableType
impl UnwindSafe for TableType
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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