Struct devela::all::YearSecSplit
source · pub struct YearSecSplit<Y, MO, D, H, M, S> {
pub y: Y,
pub mo: MO,
pub d: D,
pub h: H,
pub m: M,
pub s: S,
}
Expand description
A time split in seconds, minutes, hours, days, months and years.
Fields§
§y: Y
Years.
mo: MO
Months.
d: D
Days.
h: H
Hours.
m: M
Minutes.
s: S
Seconds.
Implementations§
source§impl<Y, MO, D, H, M, S> YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> YearSecSplit<Y, MO, D, H, M, S>
sourcepub fn as_tuple(self) -> (Y, MO, D, H, M, S)
pub fn as_tuple(self) -> (Y, MO, D, H, M, S)
Returns the fields as a tuple.
source§impl<Y: Copy, MO: Copy, D: Copy, H: Copy, M: Copy, S: Copy> YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Copy, MO: Copy, D: Copy, H: Copy, M: Copy, S: Copy> YearSecSplit<Y, MO, D, H, M, S>
sourcepub const fn to_tuple(self) -> (Y, MO, D, H, M, S)
pub const fn to_tuple(self) -> (Y, MO, D, H, M, S)
Returns the fields as a tuple in compile-time.
source§impl<T> YearSecSplit<T, T, T, T, T, T>
impl<T> YearSecSplit<T, T, T, T, T, T>
Trait Implementations§
source§impl<Y: Clone, MO: Clone, D: Clone, H: Clone, M: Clone, S: Clone> Clone for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Clone, MO: Clone, D: Clone, H: Clone, M: Clone, S: Clone> Clone for YearSecSplit<Y, MO, D, H, M, S>
source§fn clone(&self) -> YearSecSplit<Y, MO, D, H, M, S>
fn clone(&self) -> YearSecSplit<Y, MO, D, H, M, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Y: Debug, MO: Debug, D: Debug, H: Debug, M: Debug, S: Debug> Debug for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Debug, MO: Debug, D: Debug, H: Debug, M: Debug, S: Debug> Debug for YearSecSplit<Y, MO, D, H, M, S>
source§impl<Y: Default, MO: Default, D: Default, H: Default, M: Default, S: Default> Default for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Default, MO: Default, D: Default, H: Default, M: Default, S: Default> Default for YearSecSplit<Y, MO, D, H, M, S>
source§fn default() -> YearSecSplit<Y, MO, D, H, M, S>
fn default() -> YearSecSplit<Y, MO, D, H, M, S>
Returns the “default value” for a type. Read more
source§impl<Y: Hash, MO: Hash, D: Hash, H: Hash, M: Hash, S: Hash> Hash for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Hash, MO: Hash, D: Hash, H: Hash, M: Hash, S: Hash> Hash for YearSecSplit<Y, MO, D, H, M, S>
source§impl<Y: Ord, MO: Ord, D: Ord, H: Ord, M: Ord, S: Ord> Ord for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Ord, MO: Ord, D: Ord, H: Ord, M: Ord, S: Ord> Ord for YearSecSplit<Y, MO, D, H, M, S>
source§fn cmp(&self, other: &YearSecSplit<Y, MO, D, H, M, S>) -> Ordering
fn cmp(&self, other: &YearSecSplit<Y, MO, D, H, M, S>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Y: PartialEq, MO: PartialEq, D: PartialEq, H: PartialEq, M: PartialEq, S: PartialEq> PartialEq for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: PartialEq, MO: PartialEq, D: PartialEq, H: PartialEq, M: PartialEq, S: PartialEq> PartialEq for YearSecSplit<Y, MO, D, H, M, S>
source§fn eq(&self, other: &YearSecSplit<Y, MO, D, H, M, S>) -> bool
fn eq(&self, other: &YearSecSplit<Y, MO, D, H, M, S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Y: PartialOrd, MO: PartialOrd, D: PartialOrd, H: PartialOrd, M: PartialOrd, S: PartialOrd> PartialOrd for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: PartialOrd, MO: PartialOrd, D: PartialOrd, H: PartialOrd, M: PartialOrd, S: PartialOrd> PartialOrd for YearSecSplit<Y, MO, D, H, M, S>
source§fn partial_cmp(
&self,
other: &YearSecSplit<Y, MO, D, H, M, S>
) -> Option<Ordering>
fn partial_cmp( &self, other: &YearSecSplit<Y, MO, D, H, M, S> ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Y: Copy, MO: Copy, D: Copy, H: Copy, M: Copy, S: Copy> Copy for YearSecSplit<Y, MO, D, H, M, S>
impl<Y: Eq, MO: Eq, D: Eq, H: Eq, M: Eq, S: Eq> Eq for YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> StructuralPartialEq for YearSecSplit<Y, MO, D, H, M, S>
Auto Trait Implementations§
impl<Y, MO, D, H, M, S> Freeze for YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> RefUnwindSafe for YearSecSplit<Y, MO, D, H, M, S>where
D: RefUnwindSafe,
H: RefUnwindSafe,
M: RefUnwindSafe,
MO: RefUnwindSafe,
S: RefUnwindSafe,
Y: RefUnwindSafe,
impl<Y, MO, D, H, M, S> Send for YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> Sync for YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> Unpin for YearSecSplit<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> UnwindSafe for YearSecSplit<Y, MO, D, H, M, S>
Blanket Implementations§
source§impl<T> Also for T
impl<T> Also for T
source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
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> ByteSize for T
impl<T> ByteSize for T
source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
The alignment of this type in bytes.
source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Returns the alignment of this type in bytes.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> ExtAny for Twhere
T: Any,
impl<T> ExtAny for Twhere
T: Any,
source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
source§impl<T> Mem for Twhere
T: ?Sized,
impl<T> Mem for Twhere
T: ?Sized,
source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Whether dropping values of this type matters.
source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
Returns
true
if dropping values of this type matters.source§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
Forgets about
self
without running its destructor.source§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Replaces
self
with other, returning the previous value of self
.source§fn mem_take(&mut self) -> Selfwhere
Self: Default,
fn mem_take(&mut self) -> Selfwhere
Self: Default,
Replaces
self
with its default value, returning the previous value of self
.source§fn mem_swap(&mut self, other: &mut Self)where
Self: Sized,
fn mem_swap(&mut self, other: &mut Self)where
Self: Sized,
Swaps the value of
self
and other
without deinitializing either one.source§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
Available on crate feature
unsafe_slice
only.