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§
Provided Methods§
Sourcefn align(&self) -> usize
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