Trait finite_wasm::max_stack::SizeConfig
source · pub trait SizeConfig {
// Required methods
fn size_of_value(&self, ty: ValType) -> u8;
fn size_of_function_activation(
&self,
locals: &PrefixSumVec<ValType, u32>
) -> u64;
}Expand description
Configure size of various values that may end up on the stack.
Requirements
- Sizes of nullable (see
RefType::is_nullable) and non-nullable references must match.