pub struct WhitespaceCleaner { /* private fields */ }Expand description
Whitespace cleaner for removing trailing whitespace from files
Implementations§
Source§impl WhitespaceCleaner
impl WhitespaceCleaner
Sourcepub fn new(options: WhitespaceOptions) -> Self
pub fn new(options: WhitespaceOptions) -> Self
Creates a new whitespace cleaner with the given options
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a cleaner with default options
Sourcepub fn clean_file(&self, path: &Path) -> Result<usize>
pub fn clean_file(&self, path: &Path) -> Result<usize>
Removes trailing whitespace from a single file
Auto Trait Implementations§
impl Freeze for WhitespaceCleaner
impl RefUnwindSafe for WhitespaceCleaner
impl Send for WhitespaceCleaner
impl Sync for WhitespaceCleaner
impl Unpin for WhitespaceCleaner
impl UnsafeUnpin for WhitespaceCleaner
impl UnwindSafe for WhitespaceCleaner
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