#[repr(C)]pub struct LocalTable {
pub base: *mut u8,
pub count: usize,
pub table: *mut (),
}
Expand description
Definition of a table used by the VM. (obviously)
Fields§
§base: *mut u8
pointer to the elements in the table.
count: usize
Number of elements in the table (NOT necessarily the size of the table in bytes!).
table: *mut ()
The table that this represents. At the moment, this can only be *mut AnyfuncTable
.
Implementations§
Source§impl LocalTable
impl LocalTable
Sourcepub const fn offset_base() -> u8
pub const fn offset_base() -> u8
Offset to the base
field.
Sourcepub const fn offset_count() -> u8
pub const fn offset_count() -> u8
Offset to the count
field.
Trait Implementations§
Source§impl Clone for LocalTable
impl Clone for LocalTable
Source§fn clone(&self) -> LocalTable
fn clone(&self) -> LocalTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalTable
impl Debug for LocalTable
impl Copy for LocalTable
impl Send for LocalTable
Auto Trait Implementations§
impl Freeze for LocalTable
impl RefUnwindSafe for LocalTable
impl !Sync for LocalTable
impl Unpin for LocalTable
impl UnwindSafe for LocalTable
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