pub struct IndentNormalizer { /* private fields */ }Expand description
Indentation normalizer
Implementations§
Source§impl IndentNormalizer
impl IndentNormalizer
Sourcepub fn new(options: IndentOptions) -> Self
pub fn new(options: IndentOptions) -> Self
Creates a new normalizer with the given options
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a normalizer with default options
Sourcepub fn normalize_file(&self, path: &Path) -> Result<usize>
pub fn normalize_file(&self, path: &Path) -> Result<usize>
Normalize indentation in a single file. Returns the number of lines changed.
Auto Trait Implementations§
impl Freeze for IndentNormalizer
impl RefUnwindSafe for IndentNormalizer
impl Send for IndentNormalizer
impl Sync for IndentNormalizer
impl Unpin for IndentNormalizer
impl UnsafeUnpin for IndentNormalizer
impl UnwindSafe for IndentNormalizer
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