pub struct GarbageCollectorImpl { /* private fields */ }Implementations§
Source§impl GarbageCollectorImpl
impl GarbageCollectorImpl
pub fn new() -> Self
pub fn get_metrics(&self) -> &HeapMetrics
pub fn get_metrics_mut(&mut self) -> &mut HeapMetrics
pub fn mark_and_sweep(&mut self, roots: &[HeapHandleId]) -> usize
pub fn mark_phase(&mut self, roots: &[HeapHandleId]) -> HashSet<usize>
pub fn sweep_phase(&mut self, marked: &HashSet<usize>) -> usize
Trait Implementations§
Source§impl Clone for GarbageCollectorImpl
impl Clone for GarbageCollectorImpl
Source§impl Default for GarbageCollectorImpl
impl Default for GarbageCollectorImpl
Source§impl GarbageCollector for GarbageCollectorImpl
impl GarbageCollector for GarbageCollectorImpl
fn collect_garbage( &mut self, _entries: &mut HashMap<HeapHandleId, HeapEntry>, roots: &[HeapHandleId], ) -> usize
fn get_collection_stats(&self) -> (usize, u32, u32)
Auto Trait Implementations§
impl Freeze for GarbageCollectorImpl
impl RefUnwindSafe for GarbageCollectorImpl
impl Send for GarbageCollectorImpl
impl Sync for GarbageCollectorImpl
impl Unpin for GarbageCollectorImpl
impl UnwindSafe for GarbageCollectorImpl
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