pub struct CuCostTable { /* private fields */ }Expand description
Per-method compute unit costs.
Default costs follow Alchemy’s CU pricing model.
Implementations§
Source§impl CuCostTable
impl CuCostTable
Sourcepub fn new(default_cost: u32) -> Self
pub fn new(default_cost: u32) -> Self
Create a new cost table with a default cost for unknown methods.
Sourcepub fn alchemy_defaults() -> Self
pub fn alchemy_defaults() -> Self
Create the standard Alchemy-style cost table.
Trait Implementations§
Source§impl Clone for CuCostTable
impl Clone for CuCostTable
Source§fn clone(&self) -> CuCostTable
fn clone(&self) -> CuCostTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CuCostTable
impl Debug for CuCostTable
Auto Trait Implementations§
impl Freeze for CuCostTable
impl RefUnwindSafe for CuCostTable
impl Send for CuCostTable
impl Sync for CuCostTable
impl Unpin for CuCostTable
impl UnsafeUnpin for CuCostTable
impl UnwindSafe for CuCostTable
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