pub struct GcGeneration { /* private fields */ }Expand description
A single GC generation with intrusive linked list
Implementations§
Source§impl GcGeneration
impl GcGeneration
pub const fn new(threshold: u32) -> Self
pub fn count(&self) -> usize
pub fn threshold(&self) -> u32
pub fn set_threshold(&self, value: u32)
pub fn stats(&self) -> GcStats
pub fn update_stats( &self, collected: usize, uncollectable: usize, candidates: usize, duration: f64, )
Auto Trait Implementations§
impl !Freeze for GcGeneration
impl !RefUnwindSafe for GcGeneration
impl Send for GcGeneration
impl !Sync for GcGeneration
impl Unpin for GcGeneration
impl UnsafeUnpin for GcGeneration
impl UnwindSafe for GcGeneration
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more