Struct shadow_shim_helper_rs::util::time::TimeParts
source · pub struct TimeParts {
pub hours: u32,
pub mins: u32,
pub secs: u64,
pub nanos: u64,
}
Expand description
Helper for formatting times.
Fields§
§hours: u32
§mins: u32
§secs: u64
§nanos: u64
Implementations§
source§impl TimeParts
impl TimeParts
pub fn from_nanos(total_nanos: u128) -> Self
sourcepub fn fmt_hr_min_sec(&self) -> TimePartsFmtHrMinSec<'_>
pub fn fmt_hr_min_sec(&self) -> TimePartsFmtHrMinSec<'_>
Format as HH:MM:SS.
sourcepub fn fmt_hr_min_sec_milli(&self) -> TimePartsFmtHrMinSecMilli<'_>
pub fn fmt_hr_min_sec_milli(&self) -> TimePartsFmtHrMinSecMilli<'_>
Format as HH:MM:SS.mmm.
sourcepub fn fmt_hr_min_sec_nano(&self) -> TimePartsFmtHrMinSecNano<'_>
pub fn fmt_hr_min_sec_nano(&self) -> TimePartsFmtHrMinSecNano<'_>
Format as HH:MM:SS.nnnnnnnnn.
Trait Implementations§
impl Eq for TimeParts
impl StructuralPartialEq for TimeParts
Auto Trait Implementations§
impl Freeze for TimeParts
impl RefUnwindSafe for TimeParts
impl Send for TimeParts
impl Sync for TimeParts
impl Unpin for TimeParts
impl UnwindSafe for TimeParts
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