pub enum TimeFormat {
Local,
Utc,
}Expand description
Runtime discrimination between local time and UTC.
This is used as the timezone marker M in DateTime<M> when the format is
not statically known.
Variants§
Trait Implementations§
Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§fn clone(&self) -> TimeFormat
fn clone(&self) -> TimeFormat
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 TimeFormat
impl Debug for TimeFormat
Source§impl Default for TimeFormat
impl Default for TimeFormat
Source§fn default() -> TimeFormat
fn default() -> TimeFormat
Returns the “default value” for a type. Read more
Source§impl From<Local> for TimeFormat
impl From<Local> for TimeFormat
Source§fn from(_: Local) -> TimeFormat
fn from(_: Local) -> TimeFormat
Converts to this type from the input type.
Source§impl From<Utc> for TimeFormat
impl From<Utc> for TimeFormat
Source§fn from(_: Utc) -> TimeFormat
fn from(_: Utc) -> TimeFormat
Converts to this type from the input type.
Source§impl Hash for TimeFormat
impl Hash for TimeFormat
Source§impl PartialEq for TimeFormat
impl PartialEq for TimeFormat
impl Copy for TimeFormat
impl Eq for TimeFormat
impl StructuralPartialEq for TimeFormat
Auto Trait Implementations§
impl Freeze for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnsafeUnpin for TimeFormat
impl UnwindSafe for TimeFormat
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