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<TrailingCommas> for TrailingCommas
impl PartialEq<TrailingCommas> 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 ==
.