pub struct PreciseLocalDateTime<Y = SimpleYear> {
pub year: Year<Y>,
pub month: Month,
pub day: Day,
pub hour: Hour,
pub minute: Minute,
pub second: Second,
pub nanosecond: Nanosecond,
}Expand description
Date and time without time shift information, with nanosecond precision
Fields§
§year: Year<Y>§month: Month§day: Day§hour: Hour§minute: Minute§second: Second§nanosecond: NanosecondImplementations§
Trait Implementations§
Source§impl<Y: Clone> Clone for PreciseLocalDateTime<Y>
impl<Y: Clone> Clone for PreciseLocalDateTime<Y>
Source§fn clone(&self) -> PreciseLocalDateTime<Y>
fn clone(&self) -> PreciseLocalDateTime<Y>
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<Y: Debug> Debug for PreciseLocalDateTime<Y>
impl<Y: Debug> Debug for PreciseLocalDateTime<Y>
Source§impl Display for PreciseLocalDateTime
impl Display for PreciseLocalDateTime
Source§impl From<PreciseLocalDateTime> for NaiveDateTime
Available on crate feature chrono only.
impl From<PreciseLocalDateTime> for NaiveDateTime
Available on crate feature
chrono only.Source§fn from(val: PreciseLocalDateTime) -> Self
fn from(val: PreciseLocalDateTime) -> Self
Converts to this type from the input type.
Source§impl<Y: Ord> Ord for PreciseLocalDateTime<Y>
impl<Y: Ord> Ord for PreciseLocalDateTime<Y>
Source§fn cmp(&self, other: &PreciseLocalDateTime<Y>) -> Ordering
fn cmp(&self, other: &PreciseLocalDateTime<Y>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Y: PartialEq> PartialEq for PreciseLocalDateTime<Y>
impl<Y: PartialEq> PartialEq for PreciseLocalDateTime<Y>
Source§impl<Y: PartialOrd> PartialOrd for PreciseLocalDateTime<Y>
impl<Y: PartialOrd> PartialOrd for PreciseLocalDateTime<Y>
Source§impl<Y, Mo, D, H, Mi, S, N> TryFrom<(Y, Mo, D, H, Mi, S, N)> for PreciseLocalDateTime
impl<Y, Mo, D, H, Mi, S, N> TryFrom<(Y, Mo, D, H, Mi, S, N)> for PreciseLocalDateTime
impl<Y: Copy> Copy for PreciseLocalDateTime<Y>
impl<Y: Eq> Eq for PreciseLocalDateTime<Y>
impl<Y> StructuralPartialEq for PreciseLocalDateTime<Y>
Auto Trait Implementations§
impl<Y> Freeze for PreciseLocalDateTime<Y>where
Y: Freeze,
impl<Y> RefUnwindSafe for PreciseLocalDateTime<Y>where
Y: RefUnwindSafe,
impl<Y> Send for PreciseLocalDateTime<Y>where
Y: Send,
impl<Y> Sync for PreciseLocalDateTime<Y>where
Y: Sync,
impl<Y> Unpin for PreciseLocalDateTime<Y>where
Y: Unpin,
impl<Y> UnwindSafe for PreciseLocalDateTime<Y>where
Y: 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