[][src]Enum dprint_plugin_typescript::UseBraces

pub enum UseBraces {
    Maintain,
    WhenNotSingleLine,
    Always,
    PreferNone,
}

If braces should be used or not in certain scenarios.

Variants

Maintain

Uses braces when the body is on a different line.

WhenNotSingleLine

Uses braces if they're used. Doesn't use braces if they're not used.

Always

Forces the use of braces. Will add them if they aren't used.

PreferNone

Forces no braces when when the header is one line and body is one line. Otherwise forces braces.

Trait Implementations

impl Clone for UseBraces[src]

impl Copy for UseBraces[src]

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

impl FromStr for UseBraces[src]

type Err = ParseConfigurationError

The associated error which can be returned from parsing.

impl PartialEq<UseBraces> for UseBraces[src]

impl Serialize for UseBraces[src]

impl StructuralPartialEq for UseBraces[src]

impl ToString for UseBraces[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: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Erased for T

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> ToString for T where
    T: Display + ?Sized
[src]

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.