pub struct Set { /* private fields */ }
Implementations§
Source§impl 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 Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more