pub struct CostOf<T> { /* private fields */ }
Expand description
Gas cost per some type of action or data size.
Implementations§
Source§impl CostOf<CallsAmount>
impl CostOf<CallsAmount>
Sourcepub fn cost_for_with_bytes(
&self,
per_byte: CostOf<BytesAmount>,
amount: BytesAmount,
) -> u64
pub fn cost_for_with_bytes( &self, per_byte: CostOf<BytesAmount>, amount: BytesAmount, ) -> u64
Calculate (saturating add) cost for per_byte
amount of BytesAmount
(saturating mul).
Trait Implementations§
impl<T: Copy> Copy for CostOf<T>
impl<T: Eq> Eq for CostOf<T>
impl<T> StructuralPartialEq for CostOf<T>
Auto Trait Implementations§
impl<T> Freeze for CostOf<T>
impl<T> RefUnwindSafe for CostOf<T>where
T: RefUnwindSafe,
impl<T> Send for CostOf<T>where
T: Send,
impl<T> Sync for CostOf<T>where
T: Sync,
impl<T> Unpin for CostOf<T>where
T: Unpin,
impl<T> UnwindSafe for CostOf<T>where
T: UnwindSafe,
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