pub enum DateFormatStyle {
Short,
Medium,
Long,
Full,
}Expand description
Date formatting style.
Variants§
Short
Numeric short format (e.g. 09/19/2026, 19.09.2026).
Medium
Abbreviated month format (e.g. Sep 19, 2026, 19. Sep. 2026).
Long
Full month name format (e.g. September 19, 2026, 19. September 2026).
Full
Full day-of-week and month format (e.g. Saturday, September 19, 2026).
Trait Implementations§
Source§impl Clone for DateFormatStyle
impl Clone for DateFormatStyle
Source§fn clone(&self) -> DateFormatStyle
fn clone(&self) -> DateFormatStyle
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 moreimpl Copy for DateFormatStyle
Source§impl Debug for DateFormatStyle
impl Debug for DateFormatStyle
Source§impl Default for DateFormatStyle
impl Default for DateFormatStyle
Source§fn default() -> DateFormatStyle
fn default() -> DateFormatStyle
Returns the “default value” for a type. Read more
impl Eq for DateFormatStyle
Source§impl PartialEq for DateFormatStyle
impl PartialEq for DateFormatStyle
impl StructuralPartialEq for DateFormatStyle
Auto Trait Implementations§
impl Forget for DateFormatStyle
impl Freeze for DateFormatStyle
impl Move for DateFormatStyle
impl RefUnwindSafe for DateFormatStyle
impl Send for DateFormatStyle
impl Sync for DateFormatStyle
impl Unpin for DateFormatStyle
impl UnsafeUnpin for DateFormatStyle
impl UnwindSafe for DateFormatStyle
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