pub struct TimeSpan { /* private fields */ }
Implementations§
Source§impl TimeSpan
impl TimeSpan
pub fn total_days(&self) -> Decimal
pub fn total_hours(&self) -> Decimal
pub fn total_minutes(&self) -> Decimal
pub fn total_seconds(&self) -> Decimal
pub fn total_ms(&self) -> Decimal
pub fn total_nano(&self) -> u128
pub fn days(&self) -> u32
pub fn hours(&self) -> u32
pub fn minutes(&self) -> u32
pub fn seconds(&self) -> u32
pub fn ms(&self) -> u32
pub fn nanos(&self) -> u128
Trait Implementations§
impl Copy for TimeSpan
Auto Trait Implementations§
impl Freeze for TimeSpan
impl RefUnwindSafe for TimeSpan
impl Send for TimeSpan
impl Sync for TimeSpan
impl Unpin for TimeSpan
impl UnwindSafe for TimeSpan
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