[−][src]Struct alass_core::TimeDelta
This struct represents a time difference between two TimePoints
.
Internally its an integer type.
Methods
impl TimeDelta
[src]
pub fn zero() -> TimeDelta
[src]
No difference in time.
pub fn one() -> TimeDelta
[src]
Smallest positive time difference the library can work with.
pub fn from_i64(v: i64) -> TimeDelta
[src]
Create time delta as "TimeDelta::one() * v".
pub fn as_f64(&self) -> f64
[src]
Return time difference as f64.
pub fn as_f32(&self) -> f32
[src]
Return time difference as f64.
pub fn as_i64(&self) -> i64
[src]
Return time difference as i64.
Trait Implementations
impl From<TimeDelta> for i32
[src]
impl From<TimeDelta> for u32
[src]
impl From<TimeDelta> for i64
[src]
impl From<TimeDelta> for u64
[src]
impl Clone for TimeDelta
[src]
impl Copy for TimeDelta
[src]
impl Eq for TimeDelta
[src]
impl Ord for TimeDelta
[src]
fn cmp(&self, other: &TimeDelta) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimeDelta> for TimeDelta
[src]
impl PartialOrd<TimeDelta> for TimeDelta
[src]
fn partial_cmp(&self, other: &TimeDelta) -> Option<Ordering>
[src]
fn lt(&self, other: &TimeDelta) -> bool
[src]
fn le(&self, other: &TimeDelta) -> bool
[src]
fn gt(&self, other: &TimeDelta) -> bool
[src]
fn ge(&self, other: &TimeDelta) -> bool
[src]
impl Display for TimeDelta
[src]
impl Debug for TimeDelta
[src]
impl Sub<TimeDelta> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeDelta) -> TimeDelta
[src]
impl Sub<TimeDelta> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeDelta) -> TimePoint
[src]
impl Add<TimeDelta> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the +
operator.
fn add(self, rhs: TimeDelta) -> TimeDelta
[src]
impl Add<TimeDelta> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the +
operator.
fn add(self, rhs: TimeDelta) -> TimePoint
[src]
impl Add<TimeDelta> for TimeSpan
[src]
type Output = TimeSpan
The resulting type after applying the +
operator.
fn add(self, rhs: TimeDelta) -> TimeSpan
[src]
impl Mul<i64> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> TimeDelta
[src]
impl Mul<TimeDelta> for i64
[src]
type Output = TimeDelta
The resulting type after applying the *
operator.
fn mul(self, rhs: TimeDelta) -> TimeDelta
[src]
impl Neg for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the -
operator.
fn neg(self) -> TimeDelta
[src]
impl AddAssign<TimeDelta> for TimeDelta
[src]
fn add_assign(&mut self, rhs: TimeDelta)
[src]
impl AddAssign<TimeDelta> for TimePoint
[src]
fn add_assign(&mut self, rhs: TimeDelta)
[src]
impl SubAssign<TimeDelta> for TimeDelta
[src]
fn sub_assign(&mut self, rhs: TimeDelta)
[src]
impl SubAssign<TimeDelta> for TimePoint
[src]
fn sub_assign(&mut self, rhs: TimeDelta)
[src]
impl MulAssign<i64> for TimeDelta
[src]
fn mul_assign(&mut self, rhs: i64)
[src]
impl Hash for TimeDelta
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Sum<TimeDelta> for TimeDelta
[src]
Auto Trait Implementations
impl Send for TimeDelta
impl Sync for TimeDelta
impl Unpin for TimeDelta
impl UnwindSafe for TimeDelta
impl RefUnwindSafe for TimeDelta
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,