pub trait PtrSize {
    fn size(&self) -> u8;

    fn vmcaller_checked_anyfunc_func_ptr(&self) -> u8 { ... }
    fn vmcaller_checked_anyfunc_type_index(&self) -> u8 { ... }
    fn vmcaller_checked_anyfunc_vmctx(&self) -> u8 { ... }
    fn size_of_vmcaller_checked_anyfunc(&self) -> u8 { ... }
}
Expand description

Trait used for the ptr representation of the field of VMOffsets

Required Methods§

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

Provided Methods§

The offset of the func_ptr field.

The offset of the type_index field.

The offset of the vmctx field.

Return the size of VMCallerCheckedAnyfunc.

Implementations on Foreign Types§

Implementors§