[][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 Sync for Set

impl Unpin for Set

impl Send for Set

impl UnwindSafe for Set

impl RefUnwindSafe for Set

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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