pub struct Time {
pub nano: u32,
pub sec: u8,
pub minute: u8,
pub hour: u8,
}
Fields§
§nano: u32
0…999999999
sec: u8
0…59
minute: u8
0…59
hour: u8
0…23
Implementations§
source§impl Time
impl Time
sourcepub fn set_minute(self, arg: u8) -> Self
pub fn set_minute(self, arg: u8) -> Self
0…59
sourcepub fn get_minute(&self) -> u8
pub fn get_minute(&self) -> u8
minute
sourcepub fn display_time(&self, start: usize, buf: &mut [u8]) -> usize
pub fn display_time(&self, start: usize, buf: &mut [u8]) -> usize
display time and return len
Trait Implementations§
source§impl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Time
impl PartialEq for Time
impl Eq for Time
impl StructuralEq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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