Struct pwasm_utils::rules::Set
source · [−]pub struct Set { /* private fields */ }
Implementations
sourceimpl Set
impl Set
pub fn new(regular: u32, entries: Map<InstructionType, Metering>) -> Self
pub fn process(&self, instruction: &Instruction) -> Result<u32, ()>
pub fn grow_cost(&self) -> u32
pub fn with_grow_cost(self, val: u32) -> Self
pub fn with_forbidden_floats(self) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more