Enum rustfmt_nightly::config::options::__define_config_type_on_enum_ControlBraceStyle::ControlBraceStyle
source · [−]pub enum ControlBraceStyle {
AlwaysSameLine,
ClosingNextLine,
AlwaysNextLine,
}Variants
AlwaysSameLine
K&R style, Rust community default
ClosingNextLine
Stroustrup style
AlwaysNextLine
Allman style
Trait Implementations
sourceimpl Clone for ControlBraceStyle
impl Clone for ControlBraceStyle
sourcefn clone(&self) -> ControlBraceStyle
fn clone(&self) -> ControlBraceStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl ConfigType for ControlBraceStyle
impl ConfigType for ControlBraceStyle
sourceimpl Debug for ControlBraceStyle
impl Debug for ControlBraceStyle
sourceimpl<'de> Deserialize<'de> for ControlBraceStyle
impl<'de> Deserialize<'de> for ControlBraceStyle
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ControlBraceStyle
impl Display for ControlBraceStyle
sourceimpl FromStr for ControlBraceStyle
impl FromStr for ControlBraceStyle
sourceimpl Serialize for ControlBraceStyle
impl Serialize for ControlBraceStyle
impl Copy for ControlBraceStyle
impl Eq for ControlBraceStyle
impl StructuralEq for ControlBraceStyle
impl StructuralPartialEq for ControlBraceStyle
Auto Trait Implementations
impl RefUnwindSafe for ControlBraceStyle
impl Send for ControlBraceStyle
impl Sync for ControlBraceStyle
impl Unpin for ControlBraceStyle
impl UnwindSafe for ControlBraceStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
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:
AlwaysSameLine: 0 bytesClosingNextLine: 0 bytesAlwaysNextLine: 0 bytes