pub struct FileType {
pub name: String,
pub extensions: Vec<&'static str>,
pub shebangs: Vec<&'static str>,
pub default_line_ending: LineEnding,
pub default_indent: IndentConfig,
pub tabs_required: bool,
pub tabs_forbidden: bool,
}Expand description
A known file type with its default settings
Fields§
§name: StringName of the file type
extensions: Vec<&'static str>File extensions (without dot) or filenames
shebangs: Vec<&'static str>Shebang identifiers
default_line_ending: LineEndingDefault line ending
default_indent: IndentConfigDefault indentation
tabs_required: boolWhether tabs are strictly required (like Makefiles)
tabs_forbidden: boolWhether tabs are forbidden (like YAML, Python)
Trait Implementations§
Auto Trait Implementations§
impl Forget for FileType
impl Freeze for FileType
impl Move for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
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