Struct batbox_time::Duration
source · pub struct Duration { /* private fields */ }
Expand description
Represents a span of time.
Alternative of std::time::Duration
Implementations§
source§impl Duration
impl Duration
sourcepub fn from_secs_f64(secs: f64) -> Self
pub fn from_secs_f64(secs: f64) -> Self
Creates a new Duration from the specified number of seconds represented as f64.
sourcepub fn as_secs_f64(&self) -> f64
pub fn as_secs_f64(&self) -> f64
Returns the number of seconds contained by this Duration as f64
Trait Implementations§
impl Copy for Duration
Auto Trait Implementations§
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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