pub struct LocalTime {
pub year: i32,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
}Expand description
A timestamp’s local wall-clock fields. History views render times the way
an operator reads a clock, so they need the local date as well as the
local time: a span that crosses midnight has to widen from HH:MM to a
dated form, and only the calendar day can tell them that.
Fields§
§year: i32§month: u8§day: u8§hour: u8§minute: u8Implementations§
Source§impl LocalTime
impl LocalTime
Trait Implementations§
impl Copy for LocalTime
impl Eq for LocalTime
impl StructuralPartialEq for LocalTime
Auto Trait Implementations§
impl Freeze for LocalTime
impl RefUnwindSafe for LocalTime
impl Send for LocalTime
impl Sync for LocalTime
impl Unpin for LocalTime
impl UnsafeUnpin for LocalTime
impl UnwindSafe for LocalTime
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.