pub enum Time {
}Variants§
Second
Millisecond
Microsecond
Nanosecond
Minute
Hour
Day
Week
Year
JulianYear
Decade
Century
SiderealDay
SiderealYear
Custom(f64, Box<Time>)
Implementations§
Source§impl Time
impl Time
pub fn convert_to(self, to: Self) -> Self
pub fn to_seconds(&self) -> f64
Trait Implementations§
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