pub struct IndentOptions {
pub style: IndentStyle,
pub width: usize,
pub file_extensions: Vec<String>,
pub recursive: bool,
pub dry_run: bool,
}Expand description
Options for indentation normalization
Fields§
§style: IndentStyleTarget indentation style
width: usizeNumber of spaces per indent level (used when converting tabs to spaces, or as the tab width when converting spaces to tabs)
file_extensions: Vec<String>File extensions to process
recursive: boolProcess directories recursively
dry_run: boolDry run mode (don’t modify files)
Trait Implementations§
Source§impl Clone for IndentOptions
impl Clone for IndentOptions
Source§fn clone(&self) -> IndentOptions
fn clone(&self) -> IndentOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndentOptions
impl Debug for IndentOptions
Auto Trait Implementations§
impl Freeze for IndentOptions
impl RefUnwindSafe for IndentOptions
impl Send for IndentOptions
impl Sync for IndentOptions
impl Unpin for IndentOptions
impl UnsafeUnpin for IndentOptions
impl UnwindSafe for IndentOptions
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