pub struct FileCollapseBlankLinesFixer { /* private fields */ }Expand description
Collapses runs of blank lines longer than max down to exactly
max blank lines. A blank line is one whose content between
line endings is empty or only spaces/tabs. Preserves the file’s
line endings (LF vs. CRLF) by operating on byte-level newlines.
Implementations§
Trait Implementations§
Source§impl Debug for FileCollapseBlankLinesFixer
impl Debug for FileCollapseBlankLinesFixer
Source§impl Fixer for FileCollapseBlankLinesFixer
impl Fixer for FileCollapseBlankLinesFixer
Auto Trait Implementations§
impl Freeze for FileCollapseBlankLinesFixer
impl RefUnwindSafe for FileCollapseBlankLinesFixer
impl Send for FileCollapseBlankLinesFixer
impl Sync for FileCollapseBlankLinesFixer
impl Unpin for FileCollapseBlankLinesFixer
impl UnsafeUnpin for FileCollapseBlankLinesFixer
impl UnwindSafe for FileCollapseBlankLinesFixer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more