pub struct ArenaStats {
pub len: usize,
pub capacity: usize,
}Expand description
Statistics about an arena’s memory usage.
Fields§
§len: usizeNumber of allocated values.
capacity: usizeCurrent capacity (number of values that fit without reallocation).
Implementations§
Source§impl ArenaStats
impl ArenaStats
Trait Implementations§
Source§impl Clone for ArenaStats
impl Clone for ArenaStats
Source§fn clone(&self) -> ArenaStats
fn clone(&self) -> ArenaStats
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 ArenaStats
impl Debug for ArenaStats
Source§impl Display for ArenaStats
impl Display for ArenaStats
Source§impl PartialEq for ArenaStats
impl PartialEq for ArenaStats
impl Copy for ArenaStats
impl Eq for ArenaStats
impl StructuralPartialEq for ArenaStats
Auto Trait Implementations§
impl Freeze for ArenaStats
impl RefUnwindSafe for ArenaStats
impl Send for ArenaStats
impl Sync for ArenaStats
impl Unpin for ArenaStats
impl UnsafeUnpin for ArenaStats
impl UnwindSafe for ArenaStats
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