pub struct Time { /* private fields */ }Implementations§
Source§impl Time
impl Time
pub fn from_seconds<T: Into<f64>>(val: T) -> Self
pub fn from_minutes<T: Into<f64>>(val: T) -> Self
pub fn zero() -> Self
pub fn as_seconds(&self) -> f64
pub fn as_minutes(&self) -> f64
Trait Implementations§
Source§impl AddAssign for Time
impl AddAssign for Time
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl PartialOrd for Time
impl PartialOrd for Time
impl Copy for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
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