[][src]Struct time_point::Duration

#[repr(transparent)]
pub struct Duration {
    pub nanos: i64,
}

Fields

nanos: i64

Methods

impl Duration[src]

pub const fn new(nanos: i64) -> Self[src]

pub const fn zero() -> Self[src]

pub const fn from_secs(secs: i64) -> Self[src]

pub const fn from_millis(millis: i64) -> Self[src]

pub const fn from_micros(micros: i64) -> Self[src]

pub fn from_secs_f32(secs: f32) -> Self[src]

pub fn from_secs_f64(secs: f64) -> Self[src]

pub fn as_secs_f32(self) -> f32[src]

pub fn as_secs_f64(self) -> f64[src]

pub fn div_duration_f32(self, rhs: Self) -> f32[src]

pub fn div_duration_f64(self, rhs: Self) -> f64[src]

pub fn clamp(self, min: Duration, max: Duration) -> Self[src]

pub fn from_std_duration(std: Duration) -> Self[src]

pub fn into_std_duration(self) -> Duration[src]

Trait Implementations

impl Into<Duration> for Duration[src]

impl Eq for Duration[src]

impl Default for Duration[src]

impl Clone for Duration[src]

impl PartialOrd<Duration> for Duration[src]

impl PartialEq<Duration> for Duration[src]

impl Ord for Duration[src]

impl From<Duration> for Duration[src]

impl Copy for Duration[src]

impl Hash for Duration[src]

impl Add<Duration> for Duration[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Duration> for TimePoint[src]

type Output = TimePoint

The resulting type after applying the + operator.

impl Add<TimePoint> for Duration[src]

type Output = TimePoint

The resulting type after applying the + operator.

impl Sub<Duration> for Duration[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Duration> for TimePoint[src]

type Output = TimePoint

The resulting type after applying the - operator.

impl Mul<i32> for Duration[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Duration> for i32[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<f32> for Duration[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Duration> for f32[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<f64> for Duration[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Duration> for f64[src]

type Output = Duration

The resulting type after applying the * operator.

impl Div<i32> for Duration[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f32> for Duration[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f64> for Duration[src]

type Output = Self

The resulting type after applying the / operator.

impl Rem<Duration> for Duration[src]

type Output = Self

The resulting type after applying the % operator.

impl Neg for Duration[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Duration> for Duration[src]

impl AddAssign<Duration> for TimePoint[src]

impl SubAssign<Duration> for Duration[src]

impl SubAssign<Duration> for TimePoint[src]

impl MulAssign<i32> for Duration[src]

impl MulAssign<f32> for Duration[src]

impl MulAssign<f64> for Duration[src]

impl DivAssign<i32> for Duration[src]

impl DivAssign<f32> for Duration[src]

impl DivAssign<f64> for Duration[src]

impl RemAssign<Duration> for Duration[src]

impl Debug for Duration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]