Struct initiative_core::time::interval::Interval
source · pub struct Interval {
pub days: i32,
pub hours: i32,
pub minutes: i32,
pub seconds: i32,
pub rounds: i32,
}
Fields§
§days: i32
§hours: i32
§minutes: i32
§seconds: i32
§rounds: i32
Implementations§
source§impl Interval
impl Interval
pub fn new( days: i32, hours: i32, minutes: i32, seconds: i32, rounds: i32, ) -> Self
pub fn new_days(days: i32) -> Self
pub fn new_hours(hours: i32) -> Self
pub fn new_minutes(minutes: i32) -> Self
pub fn new_seconds(seconds: i32) -> Self
pub fn new_rounds(rounds: i32) -> Self
pub fn display_short(&self) -> IntervalShortView<'_>
pub fn display_long(&self) -> IntervalLongView<'_>
Trait Implementations§
source§impl AddAssign for Interval
impl AddAssign for Interval
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl PartialEq for Interval
impl PartialEq for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)