pub struct Counts {
pub words: u32,
pub characters: u32,
pub characters_no_whitespace: u32,
}Expand description
Word and character counts of a text. Counts of several texts can be added.
Fields§
§words: u32Word-like segments: letters, numbers, CJK ideographs and kana. Punctuation and whitespace are not words.
characters: u32Extended grapheme clusters, whitespace included.
characters_no_whitespace: u32Extended grapheme clusters that do not start with whitespace.
Trait Implementations§
Source§impl AddAssign for Counts
impl AddAssign for Counts
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreimpl Copy for Counts
impl Eq for Counts
impl StructuralPartialEq for Counts
Auto Trait Implementations§
impl Freeze for Counts
impl RefUnwindSafe for Counts
impl Send for Counts
impl Sync for Counts
impl Unpin for Counts
impl UnsafeUnpin for Counts
impl UnwindSafe for Counts
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