pub enum EditMode {
Surgical,
Reformat,
}Expand description
Edit mode for operations - controls how changes are applied to source files
Variants§
Surgical
Surgical mode: preserve all formatting, only change specific locations This is the recommended default for minimal diffs
Reformat
Reformat mode: use prettyplease to reformat the entire file Use this if you want consistent formatting across the file
Trait Implementations§
impl Copy for EditMode
Source§impl<'de> Deserialize<'de> for EditMode
impl<'de> Deserialize<'de> for EditMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EditMode
impl StructuralPartialEq for EditMode
Auto Trait Implementations§
impl Freeze for EditMode
impl RefUnwindSafe for EditMode
impl Send for EditMode
impl Sync for EditMode
impl Unpin for EditMode
impl UnsafeUnpin for EditMode
impl UnwindSafe for EditMode
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