[−][src]Enum hifitime::TimeUnit
Variants
36525 days, it the number of days per century in the Julian calendar
Implementations
impl TimeUnit
[src]
pub fn in_seconds(self) -> Decimal
[src]
pub fn from_seconds(self) -> Decimal
[src]
Trait Implementations
impl Add<TimeUnit> for Epoch
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, unit: TimeUnit) -> Self
[src]
impl Add<TimeUnit> for Duration
[src]
type Output = Duration
The resulting type after applying the +
operator.
fn add(self, rhs: TimeUnit) -> Duration
[src]
impl Add<TimeUnit> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Duration
[src]
impl AddAssign<TimeUnit> for Epoch
[src]
fn add_assign(&mut self, unit: TimeUnit)
[src]
impl AddAssign<TimeUnit> for Duration
[src]
fn add_assign(&mut self, rhs: TimeUnit)
[src]
impl Clone for TimeUnit
[src]
impl Copy for TimeUnit
[src]
impl Debug for TimeUnit
[src]
impl Mul<TimeUnit> for f32
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for f64
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for u128
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for u8
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for i8
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for u16
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for i16
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for u32
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for i32
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for u64
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<TimeUnit> for i64
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: TimeUnit) -> Duration
[src]
impl Mul<f32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: f32) -> Duration
[src]
impl Mul<f64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: f64) -> Duration
[src]
impl Mul<i16> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: i16) -> Duration
[src]
impl Mul<i32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: i32) -> Duration
[src]
impl Mul<i64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: i64) -> Duration
[src]
impl Mul<i8> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: i8) -> Duration
[src]
impl Mul<u128> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: u128) -> Duration
[src]
impl Mul<u16> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: u16) -> Duration
[src]
impl Mul<u32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: u32) -> Duration
[src]
impl Mul<u64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: u64) -> Duration
[src]
impl Mul<u8> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, q: u8) -> Duration
[src]
impl PartialEq<TimeUnit> for Duration
[src]
impl PartialEq<TimeUnit> for TimeUnit
[src]
impl PartialOrd<TimeUnit> for Duration
[src]
fn partial_cmp(&self, unit: &TimeUnit) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for TimeUnit
[src]
impl Sub<TimeUnit> for Epoch
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, unit: TimeUnit) -> Self
[src]
impl Sub<TimeUnit> for Duration
[src]
type Output = Duration
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeUnit) -> Duration
[src]
impl Sub<TimeUnit> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Duration
[src]
impl SubAssign<TimeUnit> for Epoch
[src]
fn sub_assign(&mut self, unit: TimeUnit)
[src]
impl SubAssign<TimeUnit> for Duration
[src]
fn sub_assign(&mut self, rhs: TimeUnit)
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnwindSafe for TimeUnit
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,