pub struct EditorConfigProperties {
pub indent_style: EditorConfigProperty<IndentStyle>,
pub indent_size: EditorConfigProperty<usize>,
pub tab_width: EditorConfigProperty<usize>,
pub end_of_line: EditorConfigProperty<EndOfLine>,
pub charset: EditorConfigProperty<Charset>,
pub trim_trailing_whitespace: EditorConfigProperty<bool>,
pub insert_final_newline: EditorConfigProperty<bool>,
pub max_line_length: EditorConfigProperty<MaxLineLength>,
}Fields§
§indent_style: EditorConfigProperty<IndentStyle>Set to tab or space to use tabs or spaces for indentation, respectively. Option tab implies that an indentation is to be filled by as many hard tabs as possible, with the rest of the indentation filled by spaces. A non-normative explanation can be found in the indentation_ section. The values are case-insensitive.
indent_size: EditorConfigProperty<usize>Set to a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). If this equals tab, the indent_size shall be set to the tab size, which should be tab_width (if specified); else, the tab size set by the editor. The values are case-insensitive.
tab_width: EditorConfigProperty<usize>Set to a whole number defining the number of columns used to represent a tab character. This defaults to the value of indent_size and should not usually need to be specified.
end_of_line: EditorConfigProperty<EndOfLine>Set to lf, cr, or crlf to control how line breaks are represented. The values are case-insensitive.
charset: EditorConfigProperty<Charset>Set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set. Use of utf-8-bom is discouraged. The values are case-insensitive.
trim_trailing_whitespace: EditorConfigProperty<bool>Set to true to remove all whitespace characters preceding newline characters in the file and false to ensure it doesn’t.
insert_final_newline: EditorConfigProperty<bool>Set to true ensure file ends with a newline when saving and false to ensure it doesn’t. Editors must not insert newlines in empty files when saving those files, even if insert_final_newline = true.
max_line_length: EditorConfigProperty<MaxLineLength>Prettier print width. Not part of spec https://github.com/editorconfig/editorconfig-vscode/issues/53#issuecomment-462432616 But documented in https://prettier.io/docs/next/configuration#editorconfig
Trait Implementations§
Source§impl Clone for EditorConfigProperties
impl Clone for EditorConfigProperties
Source§fn clone(&self) -> EditorConfigProperties
fn clone(&self) -> EditorConfigProperties
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditorConfigProperties
impl Debug for EditorConfigProperties
Source§impl Default for EditorConfigProperties
impl Default for EditorConfigProperties
Source§fn default() -> EditorConfigProperties
fn default() -> EditorConfigProperties
Source§impl PartialEq for EditorConfigProperties
impl PartialEq for EditorConfigProperties
impl Eq for EditorConfigProperties
impl StructuralPartialEq for EditorConfigProperties
Auto Trait Implementations§
impl Freeze for EditorConfigProperties
impl RefUnwindSafe for EditorConfigProperties
impl Send for EditorConfigProperties
impl Sync for EditorConfigProperties
impl Unpin for EditorConfigProperties
impl UnwindSafe for EditorConfigProperties
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)