pub struct CyclesCount { /* private fields */ }Expand description
Process N cycles, displayed as Hertz.
This value is user-provided and does not necessarily correspond to the CPU’s cycle frequency, so it may represent cycles of anything appropriate for the benchmarking context.
Implementations§
Source§impl CyclesCount
impl CyclesCount
Sourcepub fn new<N>(count: N) -> CyclesCountwhere
N: CountUInt,
pub fn new<N>(count: N) -> CyclesCountwhere
N: CountUInt,
Count N cycles.
Trait Implementations§
Source§impl Clone for CyclesCount
impl Clone for CyclesCount
Source§fn clone(&self) -> CyclesCount
fn clone(&self) -> CyclesCount
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CyclesCount
impl Debug for CyclesCount
Source§impl<C> From<C> for CyclesCountwhere
C: AsCountUInt,
impl<C> From<C> for CyclesCountwhere
C: AsCountUInt,
Source§fn from(count: C) -> CyclesCount
fn from(count: C) -> CyclesCount
Converts to this type from the input type.
Source§impl Ord for CyclesCount
impl Ord for CyclesCount
Source§fn cmp(&self, other: &CyclesCount) -> Ordering
fn cmp(&self, other: &CyclesCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CyclesCount
impl PartialEq for CyclesCount
Source§impl PartialOrd for CyclesCount
impl PartialOrd for CyclesCount
impl Copy for CyclesCount
impl Counter for CyclesCount
impl Eq for CyclesCount
impl StructuralPartialEq for CyclesCount
Auto Trait Implementations§
impl Freeze for CyclesCount
impl RefUnwindSafe for CyclesCount
impl Send for CyclesCount
impl Sync for CyclesCount
impl Unpin for CyclesCount
impl UnwindSafe for CyclesCount
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<C> IntoCounter for Cwhere
C: Counter,
impl<C> IntoCounter for Cwhere
C: Counter,
Source§fn into_counter(self) -> <C as IntoCounter>::Counter
fn into_counter(self) -> <C as IntoCounter>::Counter
Converts into a
Counter.