pub enum AnyDateTime {
Utc(UtcDateTime),
Zoned(ZonedDateTime),
}Expand description
Either UTC or zone-aware wall time.
Variants§
Trait Implementations§
Source§impl Clone for AnyDateTime
impl Clone for AnyDateTime
Source§fn clone(&self) -> AnyDateTime
fn clone(&self) -> AnyDateTime
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 AnyDateTime
impl Debug for AnyDateTime
Source§impl Hash for AnyDateTime
impl Hash for AnyDateTime
Source§impl PartialEq for AnyDateTime
impl PartialEq for AnyDateTime
impl Eq for AnyDateTime
impl StructuralPartialEq for AnyDateTime
Auto Trait Implementations§
impl Freeze for AnyDateTime
impl RefUnwindSafe for AnyDateTime
impl Send for AnyDateTime
impl Sync for AnyDateTime
impl Unpin for AnyDateTime
impl UnsafeUnpin for AnyDateTime
impl UnwindSafe for AnyDateTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EffectHash for T
impl<T> EffectHash for T
Source§fn effect_hash(&self) -> u64
fn effect_hash(&self) -> u64
Returns a
u64 hash of self using the default hasher (Effect.ts-style single-value hash).Source§impl<T> Equal for T
impl<T> Equal for T
Source§fn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether
self and other are structurally equal (defaults to PartialEq::eq).