pub struct LedgerSnapshot { /* private fields */ }Expand description
Every tag’s usage in every realm, read in one pass.
Implementations§
Source§impl LedgerSnapshot
impl LedgerSnapshot
Sourcepub fn reported(&self, realm: Realm) -> impl Iterator<Item = TagUsage> + '_
pub fn reported(&self, realm: Realm) -> impl Iterator<Item = TagUsage> + '_
The tags something has reported into, in realm order. What a readout lists: an unreported tag is absent rather than a row of zeroes.
Sourcepub fn realm_bytes(&self, realm: Realm) -> u64
pub fn realm_bytes(&self, realm: Realm) -> u64
Bytes attributed across every tag in realm. Always a floor on the
realm’s real usage: it counts what reporters explain, not everything
allocated.
Trait Implementations§
Source§impl Clone for LedgerSnapshot
impl Clone for LedgerSnapshot
Source§fn clone(&self) -> LedgerSnapshot
fn clone(&self) -> LedgerSnapshot
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 moreimpl Copy for LedgerSnapshot
Source§impl Debug for LedgerSnapshot
impl Debug for LedgerSnapshot
Source§impl Default for LedgerSnapshot
impl Default for LedgerSnapshot
impl Eq for LedgerSnapshot
Source§impl PartialEq for LedgerSnapshot
impl PartialEq for LedgerSnapshot
impl StructuralPartialEq for LedgerSnapshot
Auto Trait Implementations§
impl Freeze for LedgerSnapshot
impl RefUnwindSafe for LedgerSnapshot
impl Send for LedgerSnapshot
impl Sync for LedgerSnapshot
impl Unpin for LedgerSnapshot
impl UnsafeUnpin for LedgerSnapshot
impl UnwindSafe for LedgerSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.