pub struct Cost {
pub slots: usize,
pub stores: usize,
pub reloads: usize,
}Expand description
What allocating one function cost.
Fields§
§slots: usizeValues that went to the stack, which is what the frame grows by.
stores: usizeWrites into a slot.
reloads: usizeReads out of a slot.
Implementations§
Trait Implementations§
impl Copy for Cost
impl Eq for Cost
impl StructuralPartialEq for Cost
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnsafeUnpin for Cost
impl UnwindSafe for Cost
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