pub struct MarkedArena<'a, R: for<'b> Rootable<'b>>(/* private fields */);Implementations§
Source§impl<R> MarkedArena<'_, R>
impl<R> MarkedArena<'_, 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.
Sourcepub fn start_sweeping(self)
pub fn start_sweeping(self)
Immediately transition the arena out of CollectionPhase::Marked to
CollectionPhase::Sweeping.
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