Enum rustfmt_nightly::config::options::__define_config_type_on_enum_IndentStyle::IndentStyle
source · [−]pub enum IndentStyle {
Visual,
Block,
}Variants
Visual
First line on the same line as the opening brace, all lines aligned with the first line.
Block
First line is on a new line and all lines align with block indent.
Trait Implementations
sourceimpl Clone for IndentStyle
impl Clone for IndentStyle
sourcefn clone(&self) -> IndentStyle
fn clone(&self) -> IndentStyle
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 IndentStyle
impl ConfigType for IndentStyle
sourceimpl Debug for IndentStyle
impl Debug for IndentStyle
sourceimpl<'de> Deserialize<'de> for IndentStyle
impl<'de> Deserialize<'de> for IndentStyle
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 IndentStyle
impl Display for IndentStyle
sourceimpl FromStr for IndentStyle
impl FromStr for IndentStyle
sourceimpl PartialEq<IndentStyle> for IndentStyle
impl PartialEq<IndentStyle> for IndentStyle
sourceimpl Serialize for IndentStyle
impl Serialize for IndentStyle
impl Copy for IndentStyle
impl Eq for IndentStyle
impl StructuralEq for IndentStyle
impl StructuralPartialEq for IndentStyle
Auto Trait Implementations
impl RefUnwindSafe for IndentStyle
impl Send for IndentStyle
impl Sync for IndentStyle
impl Unpin for IndentStyle
impl UnwindSafe for IndentStyle
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:
Visual: 0 bytesBlock: 0 bytes