Struct polkavm_common::utils::Gas
source · pub struct Gas(/* private fields */);
Expand description
A gas value used for gas metering.
Implementations§
Trait Implementations§
source§impl Ord for Gas
impl Ord for Gas
source§impl PartialOrd for Gas
impl PartialOrd for Gas
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Gas
impl Eq for Gas
impl StructuralPartialEq for Gas
Auto Trait Implementations§
impl RefUnwindSafe for Gas
impl Send for Gas
impl Sync for Gas
impl Unpin for Gas
impl UnwindSafe for Gas
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