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
sourceimpl Clone for BraceStyle
impl Clone for BraceStyle
sourcefn clone(&self) -> BraceStyle
fn clone(&self) -> BraceStyle
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 moresourceimpl ConfigType for BraceStyle
impl ConfigType for BraceStyle
sourceimpl Debug for BraceStyle
impl Debug for BraceStyle
sourceimpl<'de> Deserialize<'de> for BraceStyle
impl<'de> Deserialize<'de> for BraceStyle
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 BraceStyle
impl Display for BraceStyle
sourceimpl FromStr for BraceStyle
impl FromStr for BraceStyle
sourceimpl PartialEq<BraceStyle> for BraceStyle
impl PartialEq<BraceStyle> for BraceStyle
sourcefn eq(&self, other: &BraceStyle) -> bool
fn eq(&self, other: &BraceStyle) -> bool
sourceimpl Serialize for BraceStyle
impl Serialize for BraceStyle
impl Copy for BraceStyle
impl Eq for BraceStyle
impl StructuralEq for BraceStyle
impl StructuralPartialEq for BraceStyle
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> DeserializeOwned for Twhere
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:
AlwaysNextLine: 0 bytesPreferSameLine: 0 bytesSameLineWhere: 0 bytes