pub struct CostModel {
pub let_cost: u64,
pub app_cost: u64,
pub case_cost: u64,
pub return_cost: u64,
pub branch_penalty: u64,
}Expand description
A cost model for estimating runtime cost.
Fields§
§let_cost: u64§app_cost: u64§case_cost: u64§return_cost: u64§branch_penalty: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for CostModel
impl RefUnwindSafe for CostModel
impl Send for CostModel
impl Sync for CostModel
impl Unpin for CostModel
impl UnsafeUnpin for CostModel
impl UnwindSafe for CostModel
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