pub enum FileFormatKind {
Rust,
Markdown,
Yaml,
Json,
Jsonc,
Toml,
PlainText,
PlainTextPreserveTabs,
Unsupported,
}Expand description
Supported text formatting strategy resolved from a file’s name or extension.
Variants§
Rust
Rust source file formatted via derive sorting and cargo fmt.
Markdown
Markdown file formatted with VS Code Prettier 3.7.4 alignment.
Yaml
YAML / YML file formatted with VS Code Prettier 3.7.4 alignment.
Json
Strict JSON file formatted with Prettier 2-space / 80-column rules.
Jsonc
JSONC file formatted with comment-preserving 2-space indentation.
Toml
TOML file formatted with Taplo/Cargo conventions.
PlainText
Generic UTF-8 text/script/config file normalized to LF and clean trailing whitespace.
PlainTextPreserveTabs
Generic UTF-8 text file whose leading tabs are syntactically meaningful (for example Makefile).
Unsupported
Binary, lockfile, certificate, or unsupported file left untouched.
Trait Implementations§
Source§impl Clone for FileFormatKind
impl Clone for FileFormatKind
impl Copy for FileFormatKind
Source§impl Debug for FileFormatKind
impl Debug for FileFormatKind
impl Eq for FileFormatKind
Source§impl PartialEq for FileFormatKind
impl PartialEq for FileFormatKind
impl StructuralPartialEq for FileFormatKind
Auto Trait Implementations§
impl Forget for FileFormatKind
impl Freeze for FileFormatKind
impl Move for FileFormatKind
impl RefUnwindSafe for FileFormatKind
impl Send for FileFormatKind
impl Sync for FileFormatKind
impl Unpin for FileFormatKind
impl UnsafeUnpin for FileFormatKind
impl UnwindSafe for FileFormatKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.