pub enum TableCommaPlacement {
BeforePadding,
AfterPadding,
BeforePaddingExceptNumbers,
}Expand description
Controls where commas are placed relative to padding in table-formatted output.
When objects or arrays are formatted in a table layout with aligned columns, this setting determines whether commas appear before or after the padding spaces used for alignment.
Variants§
BeforePadding
Place commas immediately after values, before any padding.
Example: "name", "value"
AfterPadding
Place commas after padding, at the end of the padded column.
Example: "name" ,"value"
BeforePaddingExceptNumbers
Place commas before padding for most values, but after padding for numbers. This often produces the cleanest-looking output for mixed data.
Trait Implementations§
Source§impl Clone for TableCommaPlacement
impl Clone for TableCommaPlacement
Source§fn clone(&self) -> TableCommaPlacement
fn clone(&self) -> TableCommaPlacement
Returns a duplicate 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 TableCommaPlacement
impl Debug for TableCommaPlacement
Source§impl PartialEq for TableCommaPlacement
impl PartialEq for TableCommaPlacement
impl Copy for TableCommaPlacement
impl Eq for TableCommaPlacement
impl StructuralPartialEq for TableCommaPlacement
Auto Trait Implementations§
impl Freeze for TableCommaPlacement
impl RefUnwindSafe for TableCommaPlacement
impl Send for TableCommaPlacement
impl Sync for TableCommaPlacement
impl Unpin for TableCommaPlacement
impl UnwindSafe for TableCommaPlacement
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