[][src]Struct climer::time::Time

pub struct Time { /* fields omitted */ }

Methods

impl Time[src]

pub fn new(
    hours: u64,
    minutes: u64,
    seconds: u64,
    milliseconds: u64,
    nanoseconds: u64
) -> Self
[src]

pub fn builder() -> TimeBuilder[src]

pub fn zero() -> Self[src]

pub fn as_hours(&self) -> f32[src]

pub fn as_minutes(&self) -> f32[src]

pub fn as_seconds(&self) -> f32[src]

pub fn as_milliseconds(&self) -> f32[src]

pub fn as_nanoseconds(&self) -> f32[src]

Trait Implementations

impl TimeConversion for Time[src]

fn add_h(&mut self, h: u64)[src]

fn add_m(&mut self, m: u64)[src]

fn add_s(&mut self, s: u64)[src]

fn add_ms(&mut self, ms: u64)[src]

fn add_ns(&mut self, ns: u64)[src]

fn add_hours(&mut self, hours: u64)[src]

fn add_minutes(&mut self, minutes: u64)[src]

fn add_seconds(&mut self, seconds: u64)[src]

fn add_milliseconds(&mut self, milliseconds: u64)[src]

fn add_nanoseconds(&mut self, nanoseconds: u64)[src]

impl From<Duration> for Time[src]

impl PartialOrd<Time> for Time[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq<Time> for Time[src]

impl Clone for Time[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Time[src]

impl Display for Time[src]

impl Debug for Time[src]

impl Add<Time> for Time[src]

type Output = Time

The resulting type after applying the + operator.

impl Sub<Time> for Time[src]

type Output = Time

The resulting type after applying the - operator.

impl AddAssign<Time> for Time[src]

Auto Trait Implementations

impl Send for Time

impl Unpin for Time

impl Sync for Time

impl UnwindSafe for Time

impl RefUnwindSafe for Time

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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