pub struct GcFrame<'frame, M: Mode> { /* private fields */ }
Expand description
A frame that can be used to root Julia data.
Frames created with a capacity can store at least that number of roots. A frame’s capacity is at least 16.
Trait Implementations
sourceimpl<'frame, M: Mode> Frame<'frame> for GcFrame<'frame, M>
impl<'frame, M: Mode> Frame<'frame> for GcFrame<'frame, M>
sourcefn reusable_slot(&mut self) -> JlrsResult<ReusableSlot<'frame>>
fn reusable_slot(&mut self) -> JlrsResult<ReusableSlot<'frame>>
Reserve a new reusable slot in the current frame. Read more
sourcefn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the maximum number of values that can be rooted in this frame.
sourcefn output(&mut self) -> JlrsResult<Output<'frame>>
fn output(&mut self) -> JlrsResult<Output<'frame>>
Reserve a new output in the current frame. Read more
sourcefn scope<T, F>(&mut self, func: F) -> JlrsResult<T> where
for<'inner> F: FnOnce(GcFrame<'inner, Self::Mode>) -> JlrsResult<T>,
fn scope<T, F>(&mut self, func: F) -> JlrsResult<T> where
for<'inner> F: FnOnce(GcFrame<'inner, Self::Mode>) -> JlrsResult<T>,
Create a new scope and call func with that scope’s frame. Read more
sourcefn scope_with_capacity<T, F>(&mut self, capacity: usize, func: F) -> JlrsResult<T> where
for<'inner> F: FnOnce(GcFrame<'inner, Self::Mode>) -> JlrsResult<T>,
fn scope_with_capacity<T, F>(&mut self, capacity: usize, func: F) -> JlrsResult<T> where
for<'inner> F: FnOnce(GcFrame<'inner, Self::Mode>) -> JlrsResult<T>,
Create a new scope and call func with that scope’s frame. Read more
Auto Trait Implementations
impl<'frame, M> !RefUnwindSafe for GcFrame<'frame, M>
impl<'frame, M> !Send for GcFrame<'frame, M>
impl<'frame, M> !Sync for GcFrame<'frame, M>
impl<'frame, M> Unpin for GcFrame<'frame, M> where
M: Unpin,
impl<'frame, M> !UnwindSafe for GcFrame<'frame, M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'frame, T> Gc for T where
T: Frame<'frame>,
impl<'frame, T> Gc for T where
T: Frame<'frame>,
sourcefn enable_gc_logging(&mut self, on: bool)
fn enable_gc_logging(&mut self, on: bool)
Enable or disable GC logging. Read more
sourcefn gc_is_enabled(&mut self) -> bool
fn gc_is_enabled(&mut self) -> bool
Returns true
if the GC is enabled.
sourcefn gc_collect(&mut self, mode: GcCollection)
fn gc_collect(&mut self, mode: GcCollection)
Force a collection.
sourcefn gc_safepoint(&mut self)
fn gc_safepoint(&mut self)
Insert a safepoint, a point where the garbage collector may run.