wasmtime_environ

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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl PtrSize for HostPtr

Source§

fn size(&self) -> u8

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

fn vmcontext_runtime_limits(&self) -> u8

The offset of the VMContext::runtime_limits field
Source§

fn vmcontext_builtin_functions(&self) -> u8

The offset of the VMContext::builtin_functions field
Source§

fn vm_func_ref_array_call(&self) -> u8

The offset of the array_call field.
Source§

fn vm_func_ref_wasm_call(&self) -> u8

The offset of the wasm_call field.
Source§

fn vm_func_ref_type_index(&self) -> u8

The offset of the type_index field.
Source§

fn vm_func_ref_vmctx(&self) -> u8

The offset of the vmctx field.
Source§

fn size_of_vm_func_ref(&self) -> u8

Return the size of VMFuncRef.
Source§

fn size_of_vmglobal_definition(&self) -> u8

Return the size of VMGlobalDefinition; this is the size of the largest value type (i.e. a V128).
Source§

fn vmruntime_limits_stack_limit(&self) -> u8

Return the offset of the stack_limit field of VMRuntimeLimits
Source§

fn vmruntime_limits_fuel_consumed(&self) -> u8

Return the offset of the fuel_consumed field of VMRuntimeLimits
Source§

fn vmruntime_limits_epoch_deadline(&self) -> u8

Return the offset of the epoch_deadline field of VMRuntimeLimits
Source§

fn vmruntime_limits_last_wasm_exit_fp(&self) -> u8

Return the offset of the last_wasm_exit_fp field of VMRuntimeLimits.
Source§

fn vmruntime_limits_last_wasm_exit_pc(&self) -> u8

Return the offset of the last_wasm_exit_pc field of VMRuntimeLimits.
Source§

fn vmruntime_limits_last_wasm_entry_sp(&self) -> u8

Return the offset of the last_wasm_entry_sp field of VMRuntimeLimits.
Source§

fn vmmemory_definition_base(&self) -> u8

The offset of the base field.
Source§

fn vmmemory_definition_current_length(&self) -> u8

The offset of the current_length field.
Source§

fn size_of_vmmemory_definition(&self) -> u8

Return the size of VMMemoryDefinition.
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 vmctx_magic(&self) -> u8

Return the offset to the magic value in this VMContext.
Source§

fn vmctx_runtime_limits(&self) -> u8

Return the offset to the VMRuntimeLimits structure
Source§

fn vmctx_builtin_functions(&self) -> u8

Return the offset to the VMBuiltinFunctionsArray structure
Source§

fn vmctx_callee(&self) -> u8

Return the offset to the callee member in this VMContext.
Source§

fn vmctx_epoch_ptr(&self) -> u8

Return the offset to the *const AtomicU64 epoch-counter pointer.
Source§

fn vmctx_gc_heap_base(&self) -> u8

Return the offset to the GC heap base in this VMContext.
Source§

fn vmctx_gc_heap_bound(&self) -> u8

Return the offset to the GC heap bound in this VMContext.
Source§

fn vmctx_gc_heap_data(&self) -> u8

Return the offset to the *mut T collector-specific data. Read more
Source§

fn vmctx_store(&self) -> u8

The offset of the *const dyn Store member.
Source§

fn vmctx_type_ids_array(&self) -> u8

The offset of the type_ids array pointer.
Source§

fn vmctx_dynamic_data_start(&self) -> u8

The end of statically known offsets in VMContext. Read more
Source§

impl Copy for HostPtr

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, dst: *mut T)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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.