Enum rustfmt_nightly::config::options::__define_config_type_on_enum_BraceStyle::BraceStyle
source · [−]pub enum BraceStyle {
AlwaysNextLine,
PreferSameLine,
SameLineWhere,
}Variants
AlwaysNextLine
Put the opening brace on the next line.
PreferSameLine
Put the opening brace on the same line, if possible.
SameLineWhere
Prefer the same line except where there is a where-clause, in which case force the brace to be put on the next line.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BraceStyle
impl Send for BraceStyle
impl Sync for BraceStyle
impl Unpin for BraceStyle
impl UnwindSafe for BraceStyle
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
AlwaysNextLine: 0 bytesPreferSameLine: 0 bytesSameLineWhere: 0 bytes