pub struct Duration {
pub years: f64,
pub months: f64,
pub seconds: f64,
}Expand description
A parsed duration: the calendar counts years and months kept apart
from the fixed-length seconds, so plus can be calendar-aware while
dur() applies the 365-day / 30-day conventions.
Fields§
§years: f64§months: f64§seconds: f64Trait Implementations§
impl Copy for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnsafeUnpin 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