[][src]Struct pwasm_utils::rules::Set

pub struct Set { /* fields omitted */ }

Methods

impl Set
[src]

pub fn new(regular: u32, entries: Map<InstructionType, Metering>) -> Self
[src]

pub fn process(&self, instruction: &Instruction) -> Result<u32, ()>
[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 Default for Set
[src]

impl Debug for Set
[src]

Auto Trait Implementations

impl Send for Set

impl Sync for Set

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]