Struct gc_arena::arena::MarkedArena
source · pub struct MarkedArena<'a, R: for<'b> Rootable<'b>>(/* private fields */);
Implementations§
source§impl<'a, R: for<'b> Rootable<'b>> MarkedArena<'a, R>
impl<'a, R: for<'b> Rootable<'b>> MarkedArena<'a, R>
sourcepub fn finalize<F, T>(self, f: F) -> T
pub fn finalize<F, T>(self, f: F) -> T
Examine the state of a fully marked arena.
Allows you to determine whether GcWeak
pointers are “dead” (aka, soon-to-be-dropped) and
potentially resurrect them for this cycle.
Note that the arena is guaranteed to be fully marked only at the beginning of this callback, any mutation that resurrects a pointer or triggers a write barrier can immediately invalidate this.
Auto Trait Implementations§
impl<'a, R> Freeze for MarkedArena<'a, R>
impl<'a, R> !RefUnwindSafe for MarkedArena<'a, R>
impl<'a, R> !Send for MarkedArena<'a, R>
impl<'a, R> !Sync for MarkedArena<'a, R>
impl<'a, R> Unpin for MarkedArena<'a, R>
impl<'a, R> !UnwindSafe for MarkedArena<'a, R>
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