pub enum FixSpec {
FileCreate {
file_create: FileCreateFixSpec,
},
FileRemove {
file_remove: FileRemoveFixSpec,
},
FilePrepend {
file_prepend: FilePrependFixSpec,
},
FileAppend {
file_append: FileAppendFixSpec,
},
FileRename {
file_rename: FileRenameFixSpec,
},
FileTrimTrailingWhitespace {
file_trim_trailing_whitespace: FileTrimTrailingWhitespaceFixSpec,
},
FileAppendFinalNewline {
file_append_final_newline: FileAppendFinalNewlineFixSpec,
},
FileNormalizeLineEndings {
file_normalize_line_endings: FileNormalizeLineEndingsFixSpec,
},
FileStripBidi {
file_strip_bidi: FileStripBidiFixSpec,
},
FileStripZeroWidth {
file_strip_zero_width: FileStripZeroWidthFixSpec,
},
FileStripBom {
file_strip_bom: FileStripBomFixSpec,
},
FileCollapseBlankLines {
file_collapse_blank_lines: FileCollapseBlankLinesFixSpec,
},
}Expand description
The fix: block on a rule. Exactly one op key must be present —
alint errors at load time when the op and rule kind are incompatible.
Variants§
FileCreate
Fields
§
file_create: FileCreateFixSpecFileRemove
Fields
§
file_remove: FileRemoveFixSpecFilePrepend
Fields
§
file_prepend: FilePrependFixSpecFileAppend
Fields
§
file_append: FileAppendFixSpecFileRename
Fields
§
file_rename: FileRenameFixSpecFileTrimTrailingWhitespace
Fields
§
file_trim_trailing_whitespace: FileTrimTrailingWhitespaceFixSpecFileAppendFinalNewline
Fields
§
file_append_final_newline: FileAppendFinalNewlineFixSpecFileNormalizeLineEndings
Fields
§
file_normalize_line_endings: FileNormalizeLineEndingsFixSpecFileStripBidi
Fields
§
file_strip_bidi: FileStripBidiFixSpecFileStripZeroWidth
Fields
§
file_strip_zero_width: FileStripZeroWidthFixSpecFileStripBom
Fields
§
file_strip_bom: FileStripBomFixSpecFileCollapseBlankLines
Fields
§
file_collapse_blank_lines: FileCollapseBlankLinesFixSpecImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FixSpec
impl<'de> Deserialize<'de> for FixSpec
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
Auto Trait Implementations§
impl Freeze for FixSpec
impl RefUnwindSafe for FixSpec
impl Send for FixSpec
impl Sync for FixSpec
impl Unpin for FixSpec
impl UnsafeUnpin for FixSpec
impl UnwindSafe for FixSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more