pub struct OutputSlotStats {
pub total_slots: usize,
pub reused_slots: usize,
pub moved_slots: usize,
pub appended_slots: usize,
}Expand description
Slot-reuse accounting from output-buffer replacement.
Fields§
§total_slots: usizeTotal output slots written after replacement.
reused_slots: usizeExisting output slots whose allocation was reused.
moved_slots: usizeExisting output slots replaced by moving an oversized incoming allocation.
appended_slots: usizeNew output slots appended beyond the previous output vector length.
Trait Implementations§
Source§impl Clone for OutputSlotStats
impl Clone for OutputSlotStats
Source§fn clone(&self) -> OutputSlotStats
fn clone(&self) -> OutputSlotStats
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 OutputSlotStats
Source§impl Debug for OutputSlotStats
impl Debug for OutputSlotStats
Source§impl Default for OutputSlotStats
impl Default for OutputSlotStats
Source§fn default() -> OutputSlotStats
fn default() -> OutputSlotStats
Returns the “default value” for a type. Read more
impl Eq for OutputSlotStats
Source§impl PartialEq for OutputSlotStats
impl PartialEq for OutputSlotStats
Source§fn eq(&self, other: &OutputSlotStats) -> bool
fn eq(&self, other: &OutputSlotStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputSlotStats
Auto Trait Implementations§
impl Freeze for OutputSlotStats
impl RefUnwindSafe for OutputSlotStats
impl Send for OutputSlotStats
impl Sync for OutputSlotStats
impl Unpin for OutputSlotStats
impl UnsafeUnpin for OutputSlotStats
impl UnwindSafe for OutputSlotStats
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§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.