pub enum FmtMode {
Check,
Write,
}Expand description
The formatting mode for the CLI.
Check— report files that need formatting without modifying them.Write— format files in-place.
Variants§
Trait Implementations§
impl Copy for FmtMode
impl Eq for FmtMode
Source§impl Ord for FmtMode
impl Ord for FmtMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FmtMode
impl PartialOrd for FmtMode
impl StructuralPartialEq for FmtMode
Auto Trait Implementations§
impl Freeze for FmtMode
impl RefUnwindSafe for FmtMode
impl Send for FmtMode
impl Sync for FmtMode
impl Unpin for FmtMode
impl UnsafeUnpin for FmtMode
impl UnwindSafe for FmtMode
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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