Enum nyx_space::time::TimeUnit [−][src]
Variants
36525 days, it the number of days per century in the Julian calendar
Implementations
impl TimeUnit
[src]
pub fn in_seconds(self) -> GenericDecimal<u128, u16>
[src]
pub fn in_seconds_f64(self) -> f64
[src]
pub fn from_seconds(self) -> GenericDecimal<u128, u16>
[src]
Trait Implementations
impl Add<TimeUnit> for Epoch
[src]
type Output = Epoch
The resulting type after applying the +
operator.
pub fn add(self, unit: TimeUnit) -> Epoch
[src]
impl Add<TimeUnit> for Duration
[src]
type Output = Duration
The resulting type after applying the +
operator.
pub fn add(self, rhs: TimeUnit) -> Duration
[src]
impl Add<TimeUnit> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the +
operator.
pub fn add(self, rhs: TimeUnit) -> Duration
[src]
impl AddAssign<TimeUnit> for Duration
[src]
pub fn add_assign(&mut self, rhs: TimeUnit)
[src]
impl AddAssign<TimeUnit> for Epoch
[src]
pub fn add_assign(&mut self, unit: TimeUnit)
[src]
impl Clone for TimeUnit
[src]
impl Copy for TimeUnit
[src]
impl Debug for TimeUnit
[src]
impl Mul<f32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: f32) -> Duration
[src]
impl Mul<f64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: f64) -> Duration
[src]
impl Mul<i16> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: i16) -> Duration
[src]
impl Mul<i32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: i32) -> Duration
[src]
impl Mul<i64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: i64) -> Duration
[src]
impl Mul<i8> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: i8) -> Duration
[src]
impl Mul<u128> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: u128) -> Duration
[src]
impl Mul<u16> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: u16) -> Duration
[src]
impl Mul<u32> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: u32) -> Duration
[src]
impl Mul<u64> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: u64) -> Duration
[src]
impl Mul<u8> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the *
operator.
pub fn mul(self, q: u8) -> Duration
[src]
impl PartialEq<TimeUnit> for TimeUnit
[src]
pub fn eq(&self, other: &TimeUnit) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<TimeUnit> for Duration
[src]
pub fn eq(&self, unit: &TimeUnit) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<TimeUnit> for Duration
[src]
pub fn partial_cmp(&self, unit: &TimeUnit) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for TimeUnit
[src]
impl Sub<TimeUnit> for Epoch
[src]
type Output = Epoch
The resulting type after applying the -
operator.
pub fn sub(self, unit: TimeUnit) -> Epoch
[src]
impl Sub<TimeUnit> for TimeUnit
[src]
type Output = Duration
The resulting type after applying the -
operator.
pub fn sub(self, rhs: TimeUnit) -> Duration
[src]
impl Sub<TimeUnit> for Duration
[src]
type Output = Duration
The resulting type after applying the -
operator.
pub fn sub(self, rhs: TimeUnit) -> Duration
[src]
impl SubAssign<TimeUnit> for Duration
[src]
pub fn sub_assign(&mut self, rhs: TimeUnit)
[src]
impl SubAssign<TimeUnit> for Epoch
[src]
pub fn sub_assign(&mut self, unit: 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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>,