Struct lsp::types::FormattingOptions [−][src]
pub struct FormattingOptions { pub tab_size: i32, pub insert_spaces: bool, pub properties: Option<HashMap<String, Union3<bool, f64, String>>>, }
Value-object describing what options formatting should use.
Fields
tab_size: i32
Size of a tab in spaces.
insert_spaces: bool
Prefer spaces over tabs.
properties: Option<HashMap<String, Union3<bool, f64, String>>>
Signature for further properties.
Methods
impl FormattingOptions
[src]
impl FormattingOptions
The FormattingOptions namespace provides helper functions to work with FormattingOptions literals.
pub fn create(tab_size: i32, insert_spaces: bool) -> Self
[src]
pub fn create(tab_size: i32, insert_spaces: bool) -> Self
Creates a new FormattingOptions literal.
Trait Implementations
impl Debug for FormattingOptions
[src]
impl Debug for FormattingOptions
Auto Trait Implementations
impl Send for FormattingOptions
impl Send for FormattingOptions
impl Sync for FormattingOptions
impl Sync for FormattingOptions