pub enum PartialDateTime {
None,
HM {
hour: u32,
minute: u32,
},
MD {
month: u32,
day: u32,
},
YMDHM {
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
},
MDHM {
month: u32,
day: u32,
hour: u32,
minute: u32,
},
YMD {
year: i32,
month: u32,
day: u32,
},
}Expand description
Partial date and time in different flavors.
Variants§
None
None
HM
Hour and minute without date
MD
Month and day without year and time
YMDHM
Complete date and time.
MDHM
Date and time without year.
YMD
Complete date without time.
Implementations§
Trait Implementations§
Source§impl Debug for PartialDateTime
impl Debug for PartialDateTime
Source§impl PartialEq for PartialDateTime
impl PartialEq for PartialDateTime
Source§fn eq(&self, other: &PartialDateTime) -> bool
fn eq(&self, other: &PartialDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartialDateTime
Auto Trait Implementations§
impl Freeze for PartialDateTime
impl RefUnwindSafe for PartialDateTime
impl Send for PartialDateTime
impl Sync for PartialDateTime
impl Unpin for PartialDateTime
impl UnsafeUnpin for PartialDateTime
impl UnwindSafe for PartialDateTime
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more