pub struct ScopedArena<T> { /* private fields */ }Expand description
An arena that supports checkpointing and rollback.
By saving a checkpoint (the current length), the arena can be rolled back to discard all allocations made after that point.
Implementations§
Source§impl<T> ScopedArena<T>
impl<T> ScopedArena<T>
Trait Implementations§
Source§impl<T: Debug> Debug for ScopedArena<T>
impl<T: Debug> Debug for ScopedArena<T>
Auto Trait Implementations§
impl<T> Freeze for ScopedArena<T>
impl<T> RefUnwindSafe for ScopedArena<T>where
T: RefUnwindSafe,
impl<T> Send for ScopedArena<T>where
T: Send,
impl<T> Sync for ScopedArena<T>where
T: Sync,
impl<T> Unpin for ScopedArena<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScopedArena<T>
impl<T> UnwindSafe for ScopedArena<T>where
T: UnwindSafe,
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