pub struct WordCharCounts {
pub words: usize,
pub chars_with_spaces: usize,
pub chars_without_spaces: usize,
}Expand description
The three counts a caller might display. All three are always computed — “characters with spaces” vs “without” is a display choice, not a separate counting mode.
Fields§
§words: usize§chars_with_spaces: usize§chars_without_spaces: usizeTrait Implementations§
Source§impl Clone for WordCharCounts
impl Clone for WordCharCounts
Source§fn clone(&self) -> WordCharCounts
fn clone(&self) -> WordCharCounts
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 WordCharCounts
Source§impl Debug for WordCharCounts
impl Debug for WordCharCounts
Source§impl Default for WordCharCounts
impl Default for WordCharCounts
Source§fn default() -> WordCharCounts
fn default() -> WordCharCounts
Returns the “default value” for a type. Read more
impl Eq for WordCharCounts
Source§impl PartialEq for WordCharCounts
impl PartialEq for WordCharCounts
impl StructuralPartialEq for WordCharCounts
Auto Trait Implementations§
impl Freeze for WordCharCounts
impl RefUnwindSafe for WordCharCounts
impl Send for WordCharCounts
impl Sync for WordCharCounts
impl Unpin for WordCharCounts
impl UnsafeUnpin for WordCharCounts
impl UnwindSafe for WordCharCounts
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.