Trait jlrs::memory::frame::Frame[][src]

pub trait Frame<'frame>: Frame<'frame> {
    fn reusable_slot(&mut self) -> JlrsResult<ReusableSlot<'frame>>;
fn n_roots(&self) -> usize;
fn capacity(&self) -> usize; fn as_scope(&mut self) -> &mut Self { ... } }
Expand description

This trait provides the functionality shared by the different frame types.

Required methods

Returns the number of values currently rooted in this frame.

Returns the maximum number of slots this frame can use.

Provided methods

This method takes a mutable reference to a frame and returns it; this method can be used as an alternative to reborrowing a frame with &mut *frame when a Scope is needed.

Implementors