pub struct BenchmarkAverages {
pub scale: u64,
pub instructions: u128,
pub heap_bytes: u128,
pub memory_bytes: u128,
pub total_allocation: u128,
}Expand description
Floor-rounded scaled means of exact aggregate totals and run counts.
Fields are floor(total * scale / runs); choose a positive scale to
interpret them in the original counter unit. Scale zero projects zero.
Fields§
§scale: u64§instructions: u128§heap_bytes: u128§memory_bytes: u128§total_allocation: u128Trait Implementations§
Source§impl Clone for BenchmarkAverages
impl Clone for BenchmarkAverages
impl Copy for BenchmarkAverages
Source§impl Debug for BenchmarkAverages
impl Debug for BenchmarkAverages
impl Eq for BenchmarkAverages
Source§impl PartialEq for BenchmarkAverages
impl PartialEq for BenchmarkAverages
impl StructuralPartialEq for BenchmarkAverages
Auto Trait Implementations§
impl Freeze for BenchmarkAverages
impl RefUnwindSafe for BenchmarkAverages
impl Send for BenchmarkAverages
impl Sync for BenchmarkAverages
impl Unpin for BenchmarkAverages
impl UnsafeUnpin for BenchmarkAverages
impl UnwindSafe for BenchmarkAverages
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.