[−][src]Struct utctimestamp::TimeDelta
Millisecond precision time delta.
Methods
impl TimeDelta[src]
Explicit conversion from and to i64.
pub const fn from_milliseconds(int: i64) -> Self[src]
pub const fn as_milliseconds(self) -> i64[src]
Trait Implementations
impl Add<TimeDelta> for UtcTimeStamp[src]
Calculate the timestamp advanced by a timedelta.
type Output = UtcTimeStamp
The resulting type after applying the + operator.
fn add(self, rhs: TimeDelta) -> Self::Output[src]
impl Add<TimeDelta> for TimeDelta[src]
type Output = TimeDelta
The resulting type after applying the + operator.
fn add(self, rhs: TimeDelta) -> Self::Output[src]
impl AddAssign<TimeDelta> for UtcTimeStamp[src]
fn add_assign(&mut self, rhs: TimeDelta)[src]
impl Clone for TimeDelta[src]
impl Copy for TimeDelta[src]
impl Debug for TimeDelta[src]
impl Display for TimeDelta[src]
Display timedelta using chrono.
impl Eq for TimeDelta[src]
impl From<Duration> for TimeDelta[src]
Create a simple timedelta from a chrono duration.
impl From<TimeDelta> for Duration[src]
Create a chrono duration from a simple timedelta.
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 Mul<i32> for TimeDelta[src]
Multiply the timestamp to be n times as long.
i32 because that's what chrono does.
type Output = TimeDelta
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> Self::Output[src]
impl Ord for TimeDelta[src]
fn cmp(&self, other: &TimeDelta) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.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 StructuralEq for TimeDelta[src]
impl StructuralPartialEq for TimeDelta[src]
impl Sub<TimeDelta> for UtcTimeStamp[src]
Calculate the timestamp lessened by a timedelta.
type Output = UtcTimeStamp
The resulting type after applying the - operator.
fn sub(self, rhs: TimeDelta) -> Self::Output[src]
impl Sub<TimeDelta> for TimeDelta[src]
type Output = TimeDelta
The resulting type after applying the - operator.
fn sub(self, rhs: TimeDelta) -> Self::Output[src]
impl SubAssign<TimeDelta> for UtcTimeStamp[src]
fn sub_assign(&mut self, rhs: TimeDelta)[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeDelta
impl Send for TimeDelta
impl Sync for TimeDelta
impl Unpin for TimeDelta
impl UnwindSafe for TimeDelta
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,
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.
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>,