[][src]Struct tte_lib::TimeSpan

pub struct TimeSpan { /* fields omitted */ }

Methods

impl TimeSpan[src]

pub fn total_days(&self) -> Decimal[src]

pub fn total_hours(&self) -> Decimal[src]

pub fn total_minutes(&self) -> Decimal[src]

pub fn total_seconds(&self) -> Decimal[src]

pub fn total_ms(&self) -> Decimal[src]

pub fn total_nano(&self) -> u128[src]

pub fn days(&self) -> u32[src]

pub fn hours(&self) -> u32[src]

pub fn minutes(&self) -> u32[src]

pub fn seconds(&self) -> u32[src]

pub fn ms(&self) -> u32[src]

pub fn nanos(&self) -> u128[src]

Trait Implementations

impl Add<Duration> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the + operator.

impl Add<TimeSpan> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the + operator.

impl Clone for TimeSpan[src]

impl Copy for TimeSpan[src]

impl Default for TimeSpan[src]

impl From<Duration> for TimeSpan[src]

impl Into<Duration> for TimeSpan[src]

impl Sub<Duration> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the - operator.

impl Sub<TimeSpan> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

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, 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.