pub trait PtrSize {
Show 20 methods // Required method fn size(&self) -> u8; // Provided methods fn vmcontext_runtime_limits(&self) -> u8 { ... } fn vm_func_ref_native_call(&self) -> u8 { ... } fn vm_func_ref_array_call(&self) -> u8 { ... } fn vm_func_ref_wasm_call(&self) -> u8 { ... } fn vm_func_ref_type_index(&self) -> u8 { ... } fn vm_func_ref_vmctx(&self) -> u8 { ... } fn size_of_vm_func_ref(&self) -> u8 { ... } fn size_of_vmglobal_definition(&self) -> u8 { ... } fn vmruntime_limits_stack_limit(&self) -> u8 { ... } fn vmruntime_limits_fuel_consumed(&self) -> u8 { ... } fn vmruntime_limits_epoch_deadline(&self) -> u8 { ... } fn vmruntime_limits_last_wasm_exit_fp(&self) -> u8 { ... } fn vmruntime_limits_last_wasm_exit_pc(&self) -> u8 { ... } fn vmruntime_limits_last_wasm_entry_sp(&self) -> u8 { ... } fn vmmemory_definition_base(&self) -> u8 { ... } fn vmmemory_definition_current_length(&self) -> u8 { ... } fn size_of_vmmemory_definition(&self) -> u8 { ... } fn size_of_vmmemory_pointer(&self) -> u8 { ... } fn vmnative_call_host_func_context_func_ref(&self) -> u8 { ... }
}
Expand description

Trait used for the ptr representation of the field of VMOffsets

Required Methods§

source

fn size(&self) -> u8

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

Provided Methods§

source

fn vmcontext_runtime_limits(&self) -> u8

The offset of the VMContext::runtime_limits field

source

fn vm_func_ref_native_call(&self) -> u8

The offset of the native_call 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_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.

source

fn vmnative_call_host_func_context_func_ref(&self) -> u8

Return the offset of VMNativeCallHostFuncContext::func_ref.

Implementations on Foreign Types§

source§

impl PtrSize for u8

source§

fn size(&self) -> u8

Implementors§