pub struct ItemsCount { /* private fields */ }Expand description
Process N items.
Implementations§
Source§impl ItemsCount
impl ItemsCount
Sourcepub fn new<N>(count: N) -> ItemsCountwhere
N: CountUInt,
pub fn new<N>(count: N) -> ItemsCountwhere
N: CountUInt,
Count N items.
Sourcepub fn of_iter<T, I>(iter: I) -> ItemsCountwhere
I: IntoIterator<Item = T>,
pub fn of_iter<T, I>(iter: I) -> ItemsCountwhere
I: IntoIterator<Item = T>,
Counts Iterator::Items.
Trait Implementations§
Source§impl Clone for ItemsCount
impl Clone for ItemsCount
Source§fn clone(&self) -> ItemsCount
fn clone(&self) -> ItemsCount
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 ItemsCount
impl Debug for ItemsCount
Source§impl<C> From<C> for ItemsCountwhere
C: AsCountUInt,
impl<C> From<C> for ItemsCountwhere
C: AsCountUInt,
Source§fn from(count: C) -> ItemsCount
fn from(count: C) -> ItemsCount
Converts to this type from the input type.
Source§impl Ord for ItemsCount
impl Ord for ItemsCount
Source§fn cmp(&self, other: &ItemsCount) -> Ordering
fn cmp(&self, other: &ItemsCount) -> 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 ItemsCount
impl PartialEq for ItemsCount
Source§impl PartialOrd for ItemsCount
impl PartialOrd for ItemsCount
impl Copy for ItemsCount
impl Counter for ItemsCount
impl Eq for ItemsCount
impl StructuralPartialEq for ItemsCount
Auto Trait Implementations§
impl Freeze for ItemsCount
impl RefUnwindSafe for ItemsCount
impl Send for ItemsCount
impl Sync for ItemsCount
impl Unpin for ItemsCount
impl UnwindSafe for ItemsCount
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.