pub struct Table { /* private fields */ }
Expand description
Implementations§
Source§impl Table
impl Table
Sourcepub fn create(ty: TableType) -> WasmEdgeResult<Self>
pub fn create(ty: TableType) -> WasmEdgeResult<Self>
Sourcepub fn ty(&self) -> WasmEdgeResult<TableType>
pub fn ty(&self) -> WasmEdgeResult<TableType>
Sourcepub fn get_data(&self, idx: u32) -> WasmEdgeResult<WasmValue>
pub fn get_data(&self, idx: u32) -> WasmEdgeResult<WasmValue>
Sourcepub fn grow(&mut self, size: u32) -> WasmEdgeResult<()>
pub fn grow(&mut self, size: u32) -> WasmEdgeResult<()>
Sourcepub unsafe fn as_ptr(&self) -> *const WasmEdge_TableInstanceContext
pub unsafe fn as_ptr(&self) -> *const WasmEdge_TableInstanceContext
§Safety
The lifetime of the returned pointer must not exceed that of the object itself.
Sourcepub unsafe fn from_raw(ptr: *mut WasmEdge_TableInstanceContext) -> Self
pub unsafe fn from_raw(ptr: *mut WasmEdge_TableInstanceContext) -> Self
§Safety
This function will take over the lifetime management of ptr
, so do not call ffi::WasmEdge_TableInstanceDelete
on ptr
after this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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