pub struct AllocationCost {
pub live: u64,
pub work: u64,
pub copies: u64,
pub class: AllocationClass,
}Fields§
§live: u64§work: u64§copies: u64§class: AllocationClassTrait Implementations§
Source§impl Clone for AllocationCost
impl Clone for AllocationCost
Source§fn clone(&self) -> AllocationCost
fn clone(&self) -> AllocationCost
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 AllocationCost
impl Debug for AllocationCost
Source§impl Default for AllocationCost
impl Default for AllocationCost
Source§fn default() -> AllocationCost
fn default() -> AllocationCost
Returns the “default value” for a type. Read more
impl Copy for AllocationCost
Auto Trait Implementations§
impl Freeze for AllocationCost
impl RefUnwindSafe for AllocationCost
impl Send for AllocationCost
impl Sync for AllocationCost
impl Unpin for AllocationCost
impl UnwindSafe for AllocationCost
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