pub struct GenerationalCollector { /* private fields */ }Expand description
Generational garbage collector
Implementations§
Source§impl GenerationalCollector
impl GenerationalCollector
pub fn new(config: GenerationalConfig) -> Self
Trait Implementations§
Source§impl GarbageCollector for GenerationalCollector
impl GarbageCollector for GenerationalCollector
fn name(&self) -> &str
fn can_collect(&self, region: &MemoryRegion) -> bool
fn estimate_collection_time(&self, region: &MemoryRegion) -> Duration
fn collect( &mut self, region: &mut MemoryRegion, tracker: &mut ReferenceTracker, ) -> Result<GCResult, GCError>
fn get_statistics(&self) -> GCCollectorStats
fn configure(&mut self, config: &GCConfig)
Auto Trait Implementations§
impl Freeze for GenerationalCollector
impl !RefUnwindSafe for GenerationalCollector
impl Send for GenerationalCollector
impl Sync for GenerationalCollector
impl Unpin for GenerationalCollector
impl !UnwindSafe for GenerationalCollector
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