[][src]Struct tamasfe_lsp_types::FormattingOptions

pub struct FormattingOptions {
    pub tab_size: u32,
    pub insert_spaces: bool,
    pub properties: HashMap<String, FormattingProperty>,
    pub trim_trailing_whitespace: Option<bool>,
    pub insert_final_newline: Option<bool>,
    pub trim_final_newlines: Option<bool>,
}

Value-object describing what options formatting should use.

Fields

tab_size: u32

Size of a tab in spaces.

insert_spaces: bool

Prefer spaces over tabs.

properties: HashMap<String, FormattingProperty>

Signature for further properties.

trim_trailing_whitespace: Option<bool>

Trim trailing whitespaces on a line.

insert_final_newline: Option<bool>

Insert a newline character at the end of the file if one does not exist.

trim_final_newlines: Option<bool>

Trim all newlines after the final newline at the end of the file.

Trait Implementations

impl Clone for FormattingOptions[src]

impl Debug for FormattingOptions[src]

impl Default for FormattingOptions[src]

impl<'de> Deserialize<'de> for FormattingOptions[src]

impl PartialEq<FormattingOptions> for FormattingOptions[src]

impl Serialize for FormattingOptions[src]

impl StructuralPartialEq for FormattingOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.