pub enum FormatSpec {
Simple(String),
Rich(DataFormat),
}Variants§
Simple(String)
Strings for default options.
Rich(DataFormat)
Supports decimals, display_format, max_length, etc.
Trait Implementations§
Source§impl Clone for FormatSpec
impl Clone for FormatSpec
Source§fn clone(&self) -> FormatSpec
fn clone(&self) -> FormatSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatSpec
impl Debug for FormatSpec
Source§impl PartialEq for FormatSpec
impl PartialEq for FormatSpec
Source§fn eq(&self, other: &FormatSpec) -> bool
fn eq(&self, other: &FormatSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatSpec
Auto Trait Implementations§
impl Freeze for FormatSpec
impl RefUnwindSafe for FormatSpec
impl Send for FormatSpec
impl Sync for FormatSpec
impl Unpin for FormatSpec
impl UnsafeUnpin for FormatSpec
impl UnwindSafe for FormatSpec
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