pub struct Counts {
pub lf: usize,
pub crlf: usize,
pub cr: usize,
}Expand description
How many of each line-ending style a string contains. See count.
Fields§
§lf: usizeNumber of \n line endings.
crlf: usizeNumber of \r\n line endings.
cr: usizeNumber of lone \r line endings.
Trait Implementations§
impl 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