pub enum TrailingCommaMode {
Never,
IfMultiline,
}
Expand description
Mode to use for trailing commas.
Variants§
Never
Never use trailing commas.
IfMultiline
Use trailing commas when the object is on multiple lines.
Trait Implementations§
Source§impl Clone for TrailingCommaMode
impl Clone for TrailingCommaMode
Source§fn clone(&self) -> TrailingCommaMode
fn clone(&self) -> TrailingCommaMode
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 Debug for TrailingCommaMode
impl Debug for TrailingCommaMode
Source§impl Default for TrailingCommaMode
impl Default for TrailingCommaMode
Source§fn default() -> TrailingCommaMode
fn default() -> TrailingCommaMode
Returns the “default value” for a type. Read more
impl Copy for TrailingCommaMode
Auto Trait Implementations§
impl Freeze for TrailingCommaMode
impl RefUnwindSafe for TrailingCommaMode
impl Send for TrailingCommaMode
impl Sync for TrailingCommaMode
impl Unpin for TrailingCommaMode
impl UnwindSafe for TrailingCommaMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)