Trait zingen::wasm::abi::Type

source ·
pub trait Type {
    // Required method
    fn size(&self) -> usize;

    // Provided method
    fn align(&self) -> usize { ... }
}
Expand description

WASM type size for the stack representation of EVM.

Required Methods§

source

fn size(&self) -> usize

Size in bytes.

Provided Methods§

source

fn align(&self) -> usize

Alignment the size of this type to bytes32 for the stack representation of EVM.

See https://sites.google.com/site/theoryofoperatingsystems/labs/malloc/align8

Implementations on Foreign Types§

source§

impl Type for &ValType

source§

fn size(&self) -> usize

source§

impl Type for &[ValType]

source§

fn size(&self) -> usize

source§

impl Type for usize

source§

fn align(&self) -> usize

source§

fn size(&self) -> usize

source§

impl Type for ValType

source§

fn size(&self) -> usize

Implementors§