Struct divan::counter::CharsCount
source · pub struct CharsCount { /* private fields */ }
Expand description
Process N char
s.
This is beneficial when comparing benchmarks between ASCII and Unicode implementations, since the number of code points is a common baseline reference.
Implementations§
Trait Implementations§
source§impl Clone for CharsCount
impl Clone for CharsCount
source§fn clone(&self) -> CharsCount
fn clone(&self) -> CharsCount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CharsCount
impl Debug for CharsCount
source§impl Ord for CharsCount
impl Ord for CharsCount
source§fn cmp(&self, other: &CharsCount) -> Ordering
fn cmp(&self, other: &CharsCount) -> 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 CharsCount
impl PartialEq for CharsCount
source§fn eq(&self, other: &CharsCount) -> bool
fn eq(&self, other: &CharsCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CharsCount
impl PartialOrd for CharsCount
source§fn partial_cmp(&self, other: &CharsCount) -> Option<Ordering>
fn partial_cmp(&self, other: &CharsCount) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CharsCount
impl Counter for CharsCount
impl Eq for CharsCount
impl StructuralEq for CharsCount
impl StructuralPartialEq for CharsCount
Auto Trait Implementations§
impl RefUnwindSafe for CharsCount
impl Send for CharsCount
impl Sync for CharsCount
impl Unpin for CharsCount
impl UnwindSafe for CharsCount
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<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
.