[−][src]Struct time_point::Duration
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 From<Duration> for Duration
[src]
impl Into<Duration> for Duration
[src]
impl Clone for Duration
[src]
impl Default for Duration
[src]
impl PartialOrd<Duration> for Duration
[src]
fn partial_cmp(&self, other: &Duration) -> Option<Ordering>
[src]
fn lt(&self, other: &Duration) -> bool
[src]
fn le(&self, other: &Duration) -> bool
[src]
fn gt(&self, other: &Duration) -> bool
[src]
fn ge(&self, other: &Duration) -> bool
[src]
impl Copy for Duration
[src]
impl Eq for Duration
[src]
impl Ord for Duration
[src]
fn cmp(&self, other: &Duration) -> 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<Duration> for Duration
[src]
impl Debug for Duration
[src]
impl Sub<Duration> for Duration
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl Sub<Duration> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the -
operator.
fn sub(self, rhs: Duration) -> Self
[src]
impl Rem<Duration> for Duration
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self
[src]
impl Div<i32> for Duration
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Self
[src]
impl Div<f32> for Duration
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self
[src]
impl Div<f64> for Duration
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self
[src]
impl Add<Duration> for Duration
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl Add<Duration> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the +
operator.
fn add(self, rhs: Duration) -> Self
[src]
impl Add<TimePoint> for Duration
[src]
type Output = TimePoint
The resulting type after applying the +
operator.
fn add(self, rhs: TimePoint) -> TimePoint
[src]
impl Mul<i32> for Duration
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Self
[src]
impl Mul<Duration> for i32
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, rhs: Duration) -> Duration
[src]
impl Mul<f32> for Duration
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self
[src]
impl Mul<Duration> for f32
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, rhs: Duration) -> Duration
[src]
impl Mul<f64> for Duration
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self
[src]
impl Mul<Duration> for f64
[src]
type Output = Duration
The resulting type after applying the *
operator.
fn mul(self, rhs: Duration) -> Duration
[src]
impl Neg for Duration
[src]
impl AddAssign<Duration> for Duration
[src]
fn add_assign(&mut self, rhs: Duration)
[src]
impl AddAssign<Duration> for TimePoint
[src]
fn add_assign(&mut self, rhs: Duration)
[src]
impl SubAssign<Duration> for Duration
[src]
fn sub_assign(&mut self, rhs: Duration)
[src]
impl SubAssign<Duration> for TimePoint
[src]
fn sub_assign(&mut self, rhs: Duration)
[src]
impl MulAssign<i32> for Duration
[src]
fn mul_assign(&mut self, rhs: i32)
[src]
impl MulAssign<f32> for Duration
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
impl MulAssign<f64> for Duration
[src]
fn mul_assign(&mut self, rhs: f64)
[src]
impl DivAssign<i32> for Duration
[src]
fn div_assign(&mut self, rhs: i32)
[src]
impl DivAssign<f32> for Duration
[src]
fn div_assign(&mut self, rhs: f32)
[src]
impl DivAssign<f64> for Duration
[src]
fn div_assign(&mut self, rhs: f64)
[src]
impl RemAssign<Duration> for Duration
[src]
fn rem_assign(&mut self, rhs: Self)
[src]
impl Hash for Duration
[src]
Auto Trait Implementations
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl RefUnwindSafe for Duration
impl UnwindSafe for Duration
Blanket Implementations
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, 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,