Struct monotonic_clock::FloatDuration [−][src]
pub struct FloatDuration(_);
Implementations
impl FloatDuration
[src]
impl FloatDuration
[src]pub fn from_nanoseconds(nanos: u64) -> FloatDuration
[src]
pub fn from_microseconds(micros: u64) -> FloatDuration
[src]
pub fn from_milliseconds(millis: u64) -> FloatDuration
[src]
pub fn from_seconds(seconds: u64) -> FloatDuration
[src]
pub fn from_seconds_f32(seconds: f32) -> FloatDuration
[src]
pub fn from_seconds_f64(seconds: f64) -> FloatDuration
[src]
pub fn as_seconds(&self) -> f64
[src]
pub fn as_nanoseconds(&self) -> f64
[src]
pub fn as_milliseconds(&self) -> f64
[src]
pub fn as_microseconds(&self) -> f64
[src]
pub fn as_std(&self) -> Duration
[src]
Trait Implementations
impl Add<FloatDuration> for FloatDuration
[src]
impl Add<FloatDuration> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the +
operator.
fn add(self, other: FloatDuration) -> FloatDuration
[src]
impl AddAssign<FloatDuration> for FloatDuration
[src]
impl AddAssign<FloatDuration> for FloatDuration
[src]fn add_assign(&mut self, other: FloatDuration)
[src]
impl Clone for FloatDuration
[src]
impl Clone for FloatDuration
[src]fn clone(&self) -> FloatDuration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for FloatDuration
[src]
impl<'de> Deserialize<'de> for FloatDuration
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Div<f64> for FloatDuration
[src]
impl Div<f64> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the /
operator.
fn div(self, multiplier: f64) -> FloatDuration
[src]
impl Div<u32> for FloatDuration
[src]
impl Div<u32> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the /
operator.
fn div(self, other: u32) -> FloatDuration
[src]
impl DivAssign<f64> for FloatDuration
[src]
impl DivAssign<f64> for FloatDuration
[src]fn div_assign(&mut self, other: f64)
[src]
impl DivAssign<u32> for FloatDuration
[src]
impl DivAssign<u32> for FloatDuration
[src]fn div_assign(&mut self, other: u32)
[src]
impl Hash for FloatDuration
[src]
impl Hash for FloatDuration
[src]impl Mul<FloatDuration> for u32
[src]
impl Mul<FloatDuration> for u32
[src]type Output = FloatDuration
The resulting type after applying the *
operator.
fn mul(self, other: FloatDuration) -> FloatDuration
[src]
impl Mul<FloatDuration> for f64
[src]
impl Mul<FloatDuration> for f64
[src]type Output = FloatDuration
The resulting type after applying the *
operator.
fn mul(self, other: FloatDuration) -> FloatDuration
[src]
impl Mul<f64> for FloatDuration
[src]
impl Mul<f64> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the *
operator.
fn mul(self, multiplier: f64) -> FloatDuration
[src]
impl Mul<u32> for FloatDuration
[src]
impl Mul<u32> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the *
operator.
fn mul(self, other: u32) -> FloatDuration
[src]
impl MulAssign<f64> for FloatDuration
[src]
impl MulAssign<f64> for FloatDuration
[src]fn mul_assign(&mut self, other: f64)
[src]
impl MulAssign<u32> for FloatDuration
[src]
impl MulAssign<u32> for FloatDuration
[src]fn mul_assign(&mut self, other: u32)
[src]
impl Ord for FloatDuration
[src]
impl Ord for FloatDuration
[src]impl PartialEq<FloatDuration> for FloatDuration
[src]
impl PartialEq<FloatDuration> for FloatDuration
[src]fn eq(&self, other: &FloatDuration) -> bool
[src]
fn ne(&self, other: &FloatDuration) -> bool
[src]
impl PartialOrd<FloatDuration> for FloatDuration
[src]
impl PartialOrd<FloatDuration> for FloatDuration
[src]fn partial_cmp(&self, other: &FloatDuration) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for FloatDuration
[src]
impl Serialize for FloatDuration
[src]impl Sub<FloatDuration> for FloatDuration
[src]
impl Sub<FloatDuration> for FloatDuration
[src]type Output = FloatDuration
The resulting type after applying the -
operator.
fn sub(self, other: FloatDuration) -> FloatDuration
[src]
impl SubAssign<FloatDuration> for FloatDuration
[src]
impl SubAssign<FloatDuration> for FloatDuration
[src]