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
Source§fn clone(&self) -> CollectStats
fn clone(&self) -> CollectStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CollectStats
Source§impl Debug for CollectStats
impl Debug for CollectStats
Source§impl Default for CollectStats
impl Default for CollectStats
Source§fn default() -> CollectStats
fn default() -> CollectStats
Returns the “default value” for a type. Read more
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