pub enum TimeFormatStyle {
Short,
Medium,
Long,
}Expand description
Time formatting style.
Variants§
Short
Hours and minutes (e.g. 14:30 or 2:30 PM).
Medium
Hours, minutes, and seconds (e.g. 14:30:00 or 2:30:00 PM).
Long
Hours, minutes, seconds, and timezone offset if present.
Trait Implementations§
Source§impl Clone for TimeFormatStyle
impl Clone for TimeFormatStyle
Source§fn clone(&self) -> TimeFormatStyle
fn clone(&self) -> TimeFormatStyle
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 TimeFormatStyle
Source§impl Debug for TimeFormatStyle
impl Debug for TimeFormatStyle
Source§impl Default for TimeFormatStyle
impl Default for TimeFormatStyle
Source§fn default() -> TimeFormatStyle
fn default() -> TimeFormatStyle
Returns the “default value” for a type. Read more
impl Eq for TimeFormatStyle
Source§impl PartialEq for TimeFormatStyle
impl PartialEq for TimeFormatStyle
impl StructuralPartialEq for TimeFormatStyle
Auto Trait Implementations§
impl Freeze for TimeFormatStyle
impl RefUnwindSafe for TimeFormatStyle
impl Send for TimeFormatStyle
impl Sync for TimeFormatStyle
impl Unpin for TimeFormatStyle
impl UnsafeUnpin for TimeFormatStyle
impl UnwindSafe for TimeFormatStyle
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