pub enum LocalDateTime<Tz: TimeZone> {
Single(DateTime<Tz>),
Ambiguous(DateTime<Tz>, DateTime<Tz>),
}
Expand description
The conversion time returned by NaiveDateTime::and_local_timezone
Variants§
Implementations§
source§impl<Tz: TimeZone> LocalDateTime<Tz>
impl<Tz: TimeZone> LocalDateTime<Tz>
Trait Implementations§
source§impl<Tz: PartialEq + TimeZone> PartialEq for LocalDateTime<Tz>
impl<Tz: PartialEq + TimeZone> PartialEq for LocalDateTime<Tz>
source§fn eq(&self, other: &LocalDateTime<Tz>) -> bool
fn eq(&self, other: &LocalDateTime<Tz>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Tz: TimeZone> TryFrom<LocalResult<DateTime<Tz>>> for LocalDateTime<Tz>
impl<Tz: TimeZone> TryFrom<LocalResult<DateTime<Tz>>> for LocalDateTime<Tz>
impl<Tz: Eq + TimeZone> Eq for LocalDateTime<Tz>
impl<Tz: TimeZone> StructuralEq for LocalDateTime<Tz>
impl<Tz: TimeZone> StructuralPartialEq for LocalDateTime<Tz>
Auto Trait Implementations§
impl<Tz> RefUnwindSafe for LocalDateTime<Tz>where <Tz as TimeZone>::Offset: RefUnwindSafe,
impl<Tz> Send for LocalDateTime<Tz>where <Tz as TimeZone>::Offset: Send,
impl<Tz> Sync for LocalDateTime<Tz>where <Tz as TimeZone>::Offset: Sync,
impl<Tz> Unpin for LocalDateTime<Tz>where <Tz as TimeZone>::Offset: Unpin,
impl<Tz> UnwindSafe for LocalDateTime<Tz>where <Tz as TimeZone>::Offset: UnwindSafe,
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