pub enum TrailingCommas {
    Never,
    Always,
    OnlyMultiLine,
}Expand description
Trailing comma possibilities.
Variants§
Never
Trailing commas should not be used.
Always
Trailing commas should always be used.
OnlyMultiLine
Trailing commas should only be used in multi-line scenarios.
Trait Implementations§
source§impl Clone for TrailingCommas
 
impl Clone for TrailingCommas
source§fn clone(&self) -> TrailingCommas
 
fn clone(&self) -> TrailingCommas
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl<'de> Deserialize<'de> for TrailingCommas
 
impl<'de> Deserialize<'de> for TrailingCommas
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for TrailingCommas
 
impl FromStr for TrailingCommas
source§impl PartialEq for TrailingCommas
 
impl PartialEq for TrailingCommas
source§fn eq(&self, other: &TrailingCommas) -> bool
 
fn eq(&self, other: &TrailingCommas) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for TrailingCommas
 
impl Serialize for TrailingCommas
source§impl ToString for TrailingCommas
 
impl ToString for TrailingCommas
impl Copy for TrailingCommas
impl StructuralPartialEq for TrailingCommas
Auto Trait Implementations§
impl RefUnwindSafe for TrailingCommas
impl Send for TrailingCommas
impl Sync for TrailingCommas
impl Unpin for TrailingCommas
impl UnwindSafe for TrailingCommas
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more