pub struct LogicalWordStats {
pub wide_chars: u64,
pub nonwide_tokens: u64,
pub nonwide_chars: u64,
}Expand description
Additive sufficient statistics for FlexDoc-style logical word volume.
Fields§
§wide_chars: u64Non-whitespace wide/fullwidth characters, each worth half a logical word.
nonwide_tokens: u64Whitespace-delimited non-wide tokens.
nonwide_chars: u64Non-whitespace non-wide characters used by the 3..6 clamp.
Implementations§
Source§impl LogicalWordStats
impl LogicalWordStats
Sourcepub fn logical_words(self) -> u64
pub fn logical_words(self) -> u64
Derive rounded logical words after aggregation.
Trait Implementations§
Source§impl Clone for LogicalWordStats
impl Clone for LogicalWordStats
impl Copy for LogicalWordStats
Source§impl Debug for LogicalWordStats
impl Debug for LogicalWordStats
Source§impl Default for LogicalWordStats
impl Default for LogicalWordStats
impl Eq for LogicalWordStats
Source§impl PartialEq for LogicalWordStats
impl PartialEq for LogicalWordStats
impl StructuralPartialEq for LogicalWordStats
Auto Trait Implementations§
impl Freeze for LogicalWordStats
impl RefUnwindSafe for LogicalWordStats
impl Send for LogicalWordStats
impl Sync for LogicalWordStats
impl Unpin for LogicalWordStats
impl UnsafeUnpin for LogicalWordStats
impl UnwindSafe for LogicalWordStats
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