pub struct ScratchStats {
pub capacity: usize,
pub peak: usize,
pub overflows: u64,
}Expand description
What one frame’s scratch reserve cost and whether it held. A non-zero
overflows means some frame fell back to the heap, so peak understates
what the frame actually wanted.
Fields§
§capacity: usizeThe reserve’s size in bytes.
peak: usizeThe most bytes any frame took from it.
overflows: u64Requests the reserve declined, sending the caller to the heap.
Trait Implementations§
Source§impl Clone for ScratchStats
impl Clone for ScratchStats
Source§fn clone(&self) -> ScratchStats
fn clone(&self) -> ScratchStats
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 ScratchStats
Source§impl Debug for ScratchStats
impl Debug for ScratchStats
Source§impl Default for ScratchStats
impl Default for ScratchStats
Source§fn default() -> ScratchStats
fn default() -> ScratchStats
Returns the “default value” for a type. Read more
impl Eq for ScratchStats
Source§impl PartialEq for ScratchStats
impl PartialEq for ScratchStats
impl StructuralPartialEq for ScratchStats
Auto Trait Implementations§
impl Freeze for ScratchStats
impl RefUnwindSafe for ScratchStats
impl Send for ScratchStats
impl Sync for ScratchStats
impl Unpin for ScratchStats
impl UnsafeUnpin for ScratchStats
impl UnwindSafe for ScratchStats
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.