pub enum ModificationKind {
Logic,
WhitespaceOnly,
ImportsOnly,
CommentsOnly,
FormattingOnly,
Mixed,
}Expand description
What kind of modification was made to a file.
Variants§
Logic
Real logic/behaviour change.
WhitespaceOnly
Only whitespace or indentation changed.
ImportsOnly
Only import/use statements changed.
CommentsOnly
Only comments changed.
FormattingOnly
Formatting pass (tokens identical, layout differs).
Mixed
Mix of logic and non-logic changes.
Trait Implementations§
Source§impl Clone for ModificationKind
impl Clone for ModificationKind
Source§fn clone(&self) -> ModificationKind
fn clone(&self) -> ModificationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModificationKind
impl Debug for ModificationKind
Source§impl<'de> Deserialize<'de> for ModificationKind
impl<'de> Deserialize<'de> for ModificationKind
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
Source§impl PartialEq for ModificationKind
impl PartialEq for ModificationKind
Source§fn eq(&self, other: &ModificationKind) -> bool
fn eq(&self, other: &ModificationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModificationKind
impl Serialize for ModificationKind
impl Copy for ModificationKind
impl Eq for ModificationKind
impl StructuralPartialEq for ModificationKind
Auto Trait Implementations§
impl Freeze for ModificationKind
impl RefUnwindSafe for ModificationKind
impl Send for ModificationKind
impl Sync for ModificationKind
impl Unpin for ModificationKind
impl UnsafeUnpin for ModificationKind
impl UnwindSafe for ModificationKind
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