[−][src]Struct tte_lib::TimeSpan
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.
fn add(self, d: Duration) -> TimeSpan
[src]
impl Add<TimeSpan> for TimeSpan
[src]
type Output = TimeSpan
The resulting type after applying the +
operator.
fn add(self, t: TimeSpan) -> TimeSpan
[src]
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.
fn sub(self, d: Duration) -> TimeSpan
[src]
impl Sub<TimeSpan> for TimeSpan
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeSpan
impl Send for TimeSpan
impl Sync for TimeSpan
impl Unpin for TimeSpan
impl UnwindSafe for TimeSpan
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,