Struct wasmtime_environ::HostPtr

source ·
pub struct HostPtr;
Expand description

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

Trait Implementations§

source§

impl PtrSize for HostPtr

source§

fn size(&self) -> u8

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

fn vmcaller_checked_func_ref_func_ptr(&self) -> u8

The offset of the func_ptr field.
source§

fn vmcaller_checked_func_ref_type_index(&self) -> u8

The offset of the type_index field.
source§

fn vmcaller_checked_func_ref_vmctx(&self) -> u8

The offset of the vmctx field.
source§

fn size_of_vmcaller_checked_func_ref(&self) -> u8

Return the size of VMCallerCheckedFuncRef.
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_enty_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.

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.