pub struct Checkpoint<T> { /* private fields */ }Expand description
Saved allocation state for rollback.
Created by Arena::checkpoint or
SharedArena::checkpoint. Rolling back
to a checkpoint drops all values allocated after it and retains everything
before.
Implementations§
Trait Implementations§
Source§impl<T> Clone for Checkpoint<T>
impl<T> Clone for Checkpoint<T>
Source§impl<T> Debug for Checkpoint<T>
impl<T> Debug for Checkpoint<T>
Source§impl<T> Hash for Checkpoint<T>
impl<T> Hash for Checkpoint<T>
Source§impl<T> Ord for Checkpoint<T>
impl<T> Ord for Checkpoint<T>
Source§impl<T> PartialEq for Checkpoint<T>
impl<T> PartialEq for Checkpoint<T>
Source§impl<T> PartialOrd for Checkpoint<T>
impl<T> PartialOrd for Checkpoint<T>
impl<T> Copy for Checkpoint<T>
impl<T> Eq for Checkpoint<T>
Auto Trait Implementations§
impl<T> Freeze for Checkpoint<T>
impl<T> RefUnwindSafe for Checkpoint<T>where
T: RefUnwindSafe,
impl<T> Send for Checkpoint<T>where
T: Send,
impl<T> Sync for Checkpoint<T>where
T: Sync,
impl<T> Unpin for Checkpoint<T>where
T: Unpin,
impl<T> UnsafeUnpin for Checkpoint<T>
impl<T> UnwindSafe for Checkpoint<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