pub struct Civil {
pub year: i32,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub nanos: u32,
}Expand description
a calendar date and wall time without a zone
Fields§
§year: i32§month: u8§day: u8§hour: u8§minute: u8§second: u8§nanos: u32Implementations§
Trait Implementations§
impl Copy for Civil
impl Eq for Civil
Source§impl Ord for Civil
impl Ord for Civil
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Civil
impl PartialOrd for Civil
impl StructuralPartialEq for Civil
Auto Trait Implementations§
impl Forget for Civil
impl Freeze for Civil
impl RefUnwindSafe for Civil
impl Send for Civil
impl Sync for Civil
impl Unpin for Civil
impl UnsafeUnpin for Civil
impl UnwindSafe for Civil
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