zingen::wasm

Trait 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§