pub struct CostModel<B: BuiltinCostModel> {
pub machine_startup: ExBudget,
pub machine_costs: MachineCosts,
pub builtin_costs: B,
}Fields§
§machine_startup: ExBudget§machine_costs: MachineCosts§builtin_costs: BImplementations§
Source§impl<B: BuiltinCostModel> CostModel<B>
impl<B: BuiltinCostModel> CostModel<B>
pub fn initialize_cost_model( version: &PlutusVersion, cost_model: &[i64], ) -> CostModel<B>
Trait Implementations§
impl<B: BuiltinCostModel> StructuralPartialEq for CostModel<B>
Auto Trait Implementations§
impl<B> Freeze for CostModel<B>where
B: Freeze,
impl<B> RefUnwindSafe for CostModel<B>where
B: RefUnwindSafe,
impl<B> Send for CostModel<B>where
B: Send,
impl<B> Sync for CostModel<B>where
B: Sync,
impl<B> Unpin for CostModel<B>where
B: Unpin,
impl<B> UnsafeUnpin for CostModel<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for CostModel<B>where
B: 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