pub struct LineStats {
pub total: usize,
pub non_empty: usize,
}Expand description
Aggregate line counts derived from text.
Fields§
§total: usizeTotal number of logical lines.
non_empty: usizeNumber of logical lines whose trimmed content is not empty.
Implementations§
Trait Implementations§
impl Copy for LineStats
impl Eq for LineStats
impl StructuralPartialEq for LineStats
Auto Trait Implementations§
impl Freeze for LineStats
impl RefUnwindSafe for LineStats
impl Send for LineStats
impl Sync for LineStats
impl Unpin for LineStats
impl UnsafeUnpin for LineStats
impl UnwindSafe for LineStats
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