Skip to main content

HostPtr

Struct HostPtr 

Source
pub struct HostPtr;
Expand description

Type representing the size of a pointer for the current compilation host

Trait Implementations§

Source§

impl Clone for HostPtr

Source§

fn clone(&self) -> HostPtr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for HostPtr

Source§

impl PtrSize for HostPtr

Source§

fn size(&self) -> u8

Returns the pointer size, in bytes, for the target.
Source§

fn vm_memory_definition(&self) -> VMMemoryDefinition<&Self>

Get the offsets::VMMemoryDefinition offsets for this pointer size.
Source§

fn vm_table_definition(&self) -> VMTableDefinition<&Self>

Get the offsets::VMTableDefinition offsets for this pointer size.
Source§

fn vm_global_definition(&self) -> VMGlobalDefinition<&Self>

Get the offsets::VMGlobalDefinition offsets for this pointer size.
Source§

fn vm_tag_definition(&self) -> VMTagDefinition<&Self>

Get the offsets::VMTagDefinition offsets for this pointer size.
Source§

fn vm_func_ref(&self) -> VMFuncRef<&Self>

Get the offsets::VMFuncRef offsets for this pointer size.
Source§

fn vm_function_import(&self) -> VMFunctionImport<&Self>

Get the offsets::VMFunctionImport offsets for this pointer size.
Source§

fn vm_table_import(&self) -> VMTableImport<&Self>

Get the offsets::VMTableImport offsets for this pointer size.
Source§

fn vm_memory_import(&self) -> VMMemoryImport<&Self>

Get the offsets::VMMemoryImport offsets for this pointer size.
Source§

fn vm_global_import(&self) -> VMGlobalImport<&Self>

Get the offsets::VMGlobalImport offsets for this pointer size.
Source§

fn vm_tag_import(&self) -> VMTagImport<&Self>

Get the offsets::VMTagImport offsets for this pointer size.
Source§

fn vm_store_context(&self) -> VMStoreContext<&Self>

Get the offsets::VMStoreContext offsets for this pointer size.
Source§

fn vm_lazy_thread(&self) -> VMLazyThread<&Self>

Get the offsets::VMLazyThread offsets for this pointer size.
Source§

fn vm_deferred_thread(&self) -> VMDeferredThread<&Self>

Get the offsets::VMDeferredThread offsets for this pointer size.
Source§

fn vm_stack_limits(&self) -> VMStackLimits<&Self>

Get the offsets::VMStackLimits offsets for this pointer size.
Source§

fn vm_host_array(&self) -> VMHostArray<&Self>

Get the offsets::VMHostArray offsets for this pointer size.
Source§

fn vm_common_stack_information(&self) -> VMCommonStackInformation<&Self>

Get the offsets::VMCommonStackInformation offsets for this pointer size.
Source§

fn vm_cont_ref(&self) -> VMContRef<&Self>

Get the offsets::VMContRef offsets for this pointer size.
Source§

fn vm_drc_heap_data(&self) -> VMDrcHeapData<&Self>

Get the offsets::VMDrcHeapData offsets for this pointer size.
Source§

fn vm_copying_heap_data(&self) -> VMCopyingHeapData<&Self>

Get the offsets::VMCopyingHeapData offsets for this pointer size.
Source§

fn vm_null_heap_data(&self) -> VMNullHeapData<&Self>

Get the offsets::VMNullHeapData offsets for this pointer size.
Source§

fn vmctx(&self) -> VMContext<&Self>

Get the offsets::VMContext offsets for this pointer size.
Source§

fn vmcomponent(&self) -> VMComponentContext<&Self>

Get the offsets::VMComponentContext offsets for this pointer size.
Source§

fn size_of_vmshared_type_index(&self) -> u8

Return the size of VMSharedTypeIndex.
Source§

fn align_of_vmshared_type_index(&self) -> u8

Return the alignment of VMSharedTypeIndex.
Source§

fn maximum_value_size(&self) -> u8

This is the size of the largest value type (i.e. a V128).
Source§

fn size_of_vmmemory_pointer(&self) -> u8

Return the size of *mut VMMemoryDefinition.
Source§

fn vmarray_call_host_func_context_func_ref(&self) -> u8

Return the offset of VMArrayCallHostFuncContext::func_ref.
Source§

fn size_of_vmstack_chain(&self) -> u8

Return the size of VMStackChain.
Source§

fn vmcontobj_contref(&self) -> u8

Return the offset of VMContObj::contref
Source§

fn vmcontobj_revision(&self) -> u8

Return the offset of VMContObj::revision
Source§

fn size_of_vmcontobj(&self) -> u8

Return the size of VMContObj.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<P> GetPtrSize for P
where P: PtrSize,

Source§

type Ptr = P

The type that implements PtrSize.
Source§

fn get_ptr_size(&self) -> &<P as GetPtrSize>::Ptr

Get a &P where P: PtrSize.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.