pub struct RootStack { /* private fields */ }Expand description
Values Rust code holds across an allocation. The only legal way to keep an index alive across a safepoint.
Implementations§
Source§impl RootStack
impl RootStack
pub fn mark(&self) -> RootMark
pub fn push(&mut self, value: Value)
pub fn truncate(&mut self, mark: RootMark)
pub fn get(&self, index: usize) -> Value
pub fn set(&mut self, index: usize, value: Value)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn values(&self) -> &[Value]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootStack
impl RefUnwindSafe for RootStack
impl Send for RootStack
impl Sync for RootStack
impl Unpin for RootStack
impl UnsafeUnpin for RootStack
impl UnwindSafe for RootStack
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