pub struct ArenaCheckpoint { /* private fields */ }Expand description
An arena checkpoint (offset into a BumpArena).
Implementations§
Source§impl ArenaCheckpoint
impl ArenaCheckpoint
pub fn capture(arena: &BumpArena) -> Self
pub fn bytes_used(&self) -> usize
pub fn chunk_count(&self) -> usize
pub fn bytes_since(&self, later_bytes_used: usize) -> usize
Trait Implementations§
Source§impl Clone for ArenaCheckpoint
impl Clone for ArenaCheckpoint
Source§fn clone(&self) -> ArenaCheckpoint
fn clone(&self) -> ArenaCheckpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArenaCheckpoint
impl Debug for ArenaCheckpoint
Source§impl PartialEq for ArenaCheckpoint
impl PartialEq for ArenaCheckpoint
impl Copy for ArenaCheckpoint
impl Eq for ArenaCheckpoint
impl StructuralPartialEq for ArenaCheckpoint
Auto Trait Implementations§
impl Freeze for ArenaCheckpoint
impl RefUnwindSafe for ArenaCheckpoint
impl Send for ArenaCheckpoint
impl Sync for ArenaCheckpoint
impl Unpin for ArenaCheckpoint
impl UnsafeUnpin for ArenaCheckpoint
impl UnwindSafe for ArenaCheckpoint
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