pub struct CollectStats {
pub before: usize,
pub collected: usize,
pub after: usize,
pub passes: usize,
}Expand description
Statistics returned by Heap::collect.
Fields§
§before: usizeBoxes registered before the collection.
collected: usizeBoxes reclaimed by this collection.
after: usizeBoxes still alive afterwards.
passes: usizeCollection passes performed (always 1 today; kept for API stability).
Trait Implementations§
Source§impl Clone for CollectStats
impl Clone for CollectStats
impl Copy for CollectStats
Source§impl Debug for CollectStats
impl Debug for CollectStats
Source§impl Default for CollectStats
impl Default for CollectStats
impl Eq for CollectStats
Source§impl PartialEq for CollectStats
impl PartialEq for CollectStats
impl StructuralPartialEq for CollectStats
Auto Trait Implementations§
impl Forget for CollectStats
impl Freeze for CollectStats
impl Move for CollectStats
impl RefUnwindSafe for CollectStats
impl Send for CollectStats
impl Sync for CollectStats
impl Unpin for CollectStats
impl UnsafeUnpin for CollectStats
impl UnwindSafe for CollectStats
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