Struct pwasm_utils::rules::Set [−][src]
pub struct Set { /* fields omitted */ }Implementations
impl Set[src]
impl Set[src]pub fn new(regular: u32, entries: Map<InstructionType, Metering>) -> Self[src]
pub fn grow_cost(&self) -> u32[src]
pub fn with_grow_cost(self, val: u32) -> Self[src]
pub fn with_forbidden_floats(self) -> Self[src]
Trait Implementations
impl Rules for Set[src]
impl Rules for Set[src]fn instruction_cost(&self, instruction: &Instruction) -> Option<u32>[src]
fn instruction_cost(&self, instruction: &Instruction) -> Option<u32>[src]Returns the cost for the passed instruction. Read more
fn memory_grow_cost(&self) -> Option<MemoryGrowCost>[src]
fn memory_grow_cost(&self) -> Option<MemoryGrowCost>[src]Returns the costs for growing the memory using the memory.grow instruction. Read more