[−][src]Struct wasmer_vm::LinearTable
A table instance.
Implementations
impl LinearTable
[src]
pub fn new(table: &TableType, style: &TableStyle) -> Result<Self, String>
[src]
Create a new table instance with specified minimum and maximum number of elements.
Trait Implementations
impl Debug for LinearTable
[src]
impl Send for LinearTable
[src]
This is correct because there is no thread-specific data tied to this type.
impl Sync for LinearTable
[src]
This is correct because all internal mutability is protected by a mutex.
impl Table for LinearTable
[src]
fn ty(&self) -> &TableType
[src]
Returns the type for this Table.
fn style(&self) -> &TableStyle
[src]
Returns the style for this Table.
fn size(&self) -> u32
[src]
Returns the number of allocated elements.
fn grow(&self, delta: u32) -> Option<u32>
[src]
Grow table by the specified amount of elements.
Returns None
if table can't be grown by the specified amount
of elements, otherwise returns the previous size of the table.
fn get(&self, index: u32) -> Option<VMCallerCheckedAnyfunc>
[src]
Get reference to the specified element.
Returns None
if the index is out of bounds.
fn set(&self, index: u32, func: VMCallerCheckedAnyfunc) -> Result<(), Trap>
[src]
fn vmtable(&self) -> NonNull<VMTableDefinition>
[src]
Return a VMTableDefinition
for exposing the table to compiled wasm code.
fn copy(
&self,
src_table: &dyn Table,
dst_index: u32,
src_index: u32,
len: u32
) -> Result<(), Trap>
[src]
&self,
src_table: &dyn Table,
dst_index: u32,
src_index: u32,
len: u32
) -> Result<(), Trap>
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,