pub enum FoundDateTimeKind {
Normal(DateTime),
Skipped {
before_transition: DateTime,
after_transition: DateTime,
},
}
Expand description
Type of a found date time created by the DateTime::find
method
Variants§
Normal(DateTime)
Found date time is valid
Skipped
Found date time is invalid because it was skipped by a forward transition.
This variant gives the two DateTime
corresponding to the transition instant, just before and just after the transition.
This is different from the mktime
behavior, which allows invalid date times when no DST information is available (by specifying tm_isdst = -1
).
Trait Implementations§
Source§impl Clone for FoundDateTimeKind
impl Clone for FoundDateTimeKind
Source§fn clone(&self) -> FoundDateTimeKind
fn clone(&self) -> FoundDateTimeKind
Returns a copy 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 FoundDateTimeKind
impl Debug for FoundDateTimeKind
Source§impl PartialEq for FoundDateTimeKind
impl PartialEq for FoundDateTimeKind
impl Copy for FoundDateTimeKind
impl StructuralPartialEq for FoundDateTimeKind
Auto Trait Implementations§
impl Freeze for FoundDateTimeKind
impl RefUnwindSafe for FoundDateTimeKind
impl Send for FoundDateTimeKind
impl Sync for FoundDateTimeKind
impl Unpin for FoundDateTimeKind
impl UnwindSafe for FoundDateTimeKind
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