pub struct SimpleTime {
pub hour: u8,
pub minute: u8,
}Expand description
A plain wall-clock time — hour (0-23) and minute (0-59). No seconds.
Fields§
§hour: u8§minute: u8Implementations§
Trait Implementations§
Source§impl Clone for SimpleTime
impl Clone for SimpleTime
Source§fn clone(&self) -> SimpleTime
fn clone(&self) -> SimpleTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimpleTime
Source§impl Debug for SimpleTime
impl Debug for SimpleTime
impl Eq for SimpleTime
Source§impl PartialEq for SimpleTime
impl PartialEq for SimpleTime
impl StructuralPartialEq for SimpleTime
Auto Trait Implementations§
impl Freeze for SimpleTime
impl RefUnwindSafe for SimpleTime
impl Send for SimpleTime
impl Sync for SimpleTime
impl Unpin for SimpleTime
impl UnsafeUnpin for SimpleTime
impl UnwindSafe for SimpleTime
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