Struct language2::language_settings::LanguageSettings
source · pub struct LanguageSettings {Show 16 fields
pub tab_size: NonZeroU32,
pub hard_tabs: bool,
pub soft_wrap: SoftWrap,
pub preferred_line_length: u32,
pub show_wrap_guides: bool,
pub wrap_guides: Vec<usize>,
pub format_on_save: FormatOnSave,
pub remove_trailing_whitespace_on_save: bool,
pub ensure_final_newline_on_save: bool,
pub formatter: Formatter,
pub prettier: HashMap<String, Value>,
pub enable_language_server: bool,
pub show_copilot_suggestions: bool,
pub show_whitespaces: ShowWhitespaceSetting,
pub extend_comment_on_newline: bool,
pub inlay_hints: InlayHintSettings,
}
Fields§
§tab_size: NonZeroU32
§hard_tabs: bool
§soft_wrap: SoftWrap
§preferred_line_length: u32
§show_wrap_guides: bool
§wrap_guides: Vec<usize>
§format_on_save: FormatOnSave
§remove_trailing_whitespace_on_save: bool
§ensure_final_newline_on_save: bool
§formatter: Formatter
§prettier: HashMap<String, Value>
§enable_language_server: bool
§show_copilot_suggestions: bool
§show_whitespaces: ShowWhitespaceSetting
§extend_comment_on_newline: bool
§inlay_hints: InlayHintSettings
Trait Implementations§
source§impl Clone for LanguageSettings
impl Clone for LanguageSettings
source§fn clone(&self) -> LanguageSettings
fn clone(&self) -> LanguageSettings
Returns a copy of the value. Read more
1.0.0 · 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 LanguageSettings
impl Debug for LanguageSettings
source§impl<'de> Deserialize<'de> for LanguageSettings
impl<'de> Deserialize<'de> for LanguageSettings
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 RefUnwindSafe for LanguageSettings
impl Send for LanguageSettings
impl Sync for LanguageSettings
impl Unpin for LanguageSettings
impl UnwindSafe for LanguageSettings
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