pub struct Statistics<const N: usize = 3> {
pub region_stats: [Option<RegionStatistics>; N],
pub size: usize,
pub current_usage: usize,
}Fields§
§region_stats: [Option<RegionStatistics>; N]Granular stats for all the configured memory regions.
size: usizeTotal size of all combined heap regions in bytes.
current_usage: usizeCurrent usage of the heap across all configured regions in bytes.
Trait Implementations§
Source§impl<const N: usize> Clone for Statistics<N>
impl<const N: usize> Clone for Statistics<N>
Source§fn clone(&self) -> Statistics<N>
fn clone(&self) -> Statistics<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for Statistics<N>
impl<const N: usize> Debug for Statistics<N>
Source§impl<const N: usize> PartialEq for Statistics<N>
impl<const N: usize> PartialEq for Statistics<N>
Source§fn eq(&self, other: &Statistics<N>) -> bool
fn eq(&self, other: &Statistics<N>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const N: usize> Eq for Statistics<N>
impl<const N: usize> StructuralPartialEq for Statistics<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Statistics<N>
impl<const N: usize> RefUnwindSafe for Statistics<N>
impl<const N: usize> Send for Statistics<N>
impl<const N: usize> Sync for Statistics<N>
impl<const N: usize> Unpin for Statistics<N>
impl<const N: usize> UnsafeUnpin for Statistics<N>
impl<const N: usize> UnwindSafe for Statistics<N>
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