Struct embedded_time::duration::Milliseconds[][src]

pub struct Milliseconds<T: TimeInt = u32>(pub T);
Expand description

A duration unit type

Implementations

impl<T: TimeInt> Milliseconds<T>[src]

pub fn new(value: T) -> Self[src]

Trait Implementations

impl<T: TimeInt, Clock: Clock> Add<Instant<Clock>> for Milliseconds<T> where
    Clock::T: TryFrom<T>, 
[src]

type Output = Instant<Clock>

The resulting type after applying the + operator.

fn add(self, rhs: Instant<Clock>) -> Self::Output[src]

Performs the + operation. Read more

impl<T: TimeInt, Rhs: Duration> Add<Rhs> for Milliseconds<T> where
    Rhs: FixedPoint,
    Self: TryFrom<Rhs>, 
[src]

fn add(self, rhs: Rhs) -> Self::Output[src]

See Add/Sub

type Output = Self

The resulting type after applying the + operator.

impl<T: Clone + TimeInt> Clone for Milliseconds<T>[src]

fn clone(&self) -> Milliseconds<T>[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<T: Debug + TimeInt> Debug for Milliseconds<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T: Default + TimeInt> Default for Milliseconds<T>[src]

fn default() -> Milliseconds<T>[src]

Returns the “default value” for a type. Read more

impl<T: TimeInt> Display for Milliseconds<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

impl<T: TimeInt> Div<T> for Milliseconds<T>[src]

fn div(self, rhs: T) -> Self::Output[src]

See Mul/Div

type Output = Self

The resulting type after applying the / operator.

impl<T: TimeInt> Duration for Milliseconds<T>[src]

fn to_generic<DestInt: TimeInt>(
    self,
    scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
    Self: FixedPoint,
    DestInt: TryFrom<Self::T>, 
[src]

Construct a Generic Duration from a named Duration (eg. Milliseconds) Read more

fn to_rate<Rate: Rate>(&self) -> Result<Rate, ConversionError> where
    Rate: FixedPoint,
    Self: FixedPoint,
    Rate::T: TryFrom<Self::T>, 
[src]

Convert to named Rate Read more

impl<T: TimeInt> FixedPoint for Milliseconds<T>[src]

fn integer(&self) -> Self::T[src]

type T = T

The integer (magnitude) type

const SCALING_FACTOR: Fraction[src]

The fractional scaling factor

fn new(value: Self::T) -> Self[src]

fn checked_mul(&self, rhs: &Self::T) -> Option<Self>[src]

Multiply with overflow checking

fn checked_div(&self, rhs: &Self::T) -> Option<Self>[src]

Multiply with overflow checking

fn min_value() -> Self::T[src]

Returns the minimum integer value

fn max_value() -> Self::T[src]

Returns the maximum integer value

impl From<Hours<u32>> for Milliseconds<u64>[src]

fn from(big: Hours<u32>) -> Self[src]

impl<T: TimeInt> From<Microseconds<T>> for Milliseconds<T>[src]

impl From<Microseconds<u32>> for Milliseconds<u64>[src]

impl<T: TimeInt> From<Milliseconds<T>> for Generic<T>[src]

impl<T: TimeInt> From<Milliseconds<T>> for Hours<T>[src]

impl<T: TimeInt> From<Milliseconds<T>> for Minutes<T>[src]

impl<T: TimeInt> From<Milliseconds<T>> for Seconds<T>[src]

impl From<Milliseconds<u32>> for Milliseconds<u64>[src]

impl From<Milliseconds<u32>> for Hours<u64>[src]

impl From<Milliseconds<u32>> for Minutes<u64>[src]

impl From<Milliseconds<u32>> for Seconds<u64>[src]

impl From<Milliseconds<u32>> for Nanoseconds<u64>[src]

impl From<Milliseconds<u32>> for Microseconds<u64>[src]

impl From<Minutes<u32>> for Milliseconds<u64>[src]

impl<T: TimeInt> From<Nanoseconds<T>> for Milliseconds<T>[src]

impl From<Nanoseconds<u32>> for Milliseconds<u64>[src]

impl From<Seconds<u32>> for Milliseconds<u64>[src]

impl<T: Hash + TimeInt> Hash for Milliseconds<T>[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<T: TimeInt> Mul<T> for Milliseconds<T>[src]

fn mul(self, rhs: T) -> Self::Output[src]

See Mul/Div

type Output = Self

The resulting type after applying the * operator.

impl<T: Ord + TimeInt> Ord for Milliseconds<T>[src]

fn cmp(&self, other: &Milliseconds<T>) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hours<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Hours<RhsInt>>, 
[src]

fn eq(&self, rhs: &Hours<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Microseconds<RhsInt>> for Milliseconds<T> where
    Microseconds<RhsInt>: TryFrom<Self>, 
[src]

fn eq(&self, rhs: &Microseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Milliseconds<T> where
    T: TryFrom<RhsInt>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Hours<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Minutes<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Seconds<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Nanoseconds<T> where
    Self: TryFrom<Milliseconds<RhsInt>>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Microseconds<T> where
    Self: TryFrom<Milliseconds<RhsInt>>, 
[src]

fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Minutes<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Minutes<RhsInt>>, 
[src]

fn eq(&self, rhs: &Minutes<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Milliseconds<T> where
    Nanoseconds<RhsInt>: TryFrom<Self>, 
[src]

fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Seconds<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Seconds<RhsInt>>, 
[src]

fn eq(&self, rhs: &Seconds<RhsInt>) -> bool[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hours<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Hours<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &Hours<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Microseconds<RhsInt>> for Milliseconds<T> where
    Microseconds<RhsInt>: TryFrom<Self>, 
[src]

fn partial_cmp(&self, rhs: &Microseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Milliseconds<T> where
    T: TryFrom<RhsInt>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Hours<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Minutes<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Seconds<T> where
    Milliseconds<RhsInt>: TryFrom<Self>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Nanoseconds<T> where
    Self: TryFrom<Milliseconds<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Microseconds<T> where
    Self: TryFrom<Milliseconds<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Minutes<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Minutes<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &Minutes<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Milliseconds<T> where
    Nanoseconds<RhsInt>: TryFrom<Self>, 
[src]

fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Seconds<RhsInt>> for Milliseconds<T> where
    Self: TryFrom<Seconds<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &Seconds<RhsInt>) -> Option<Ordering>[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<T: TimeInt, Rhs: Duration> Rem<Rhs> for Milliseconds<T> where
    Self: TryFrom<Rhs>,
    Rhs: FixedPoint
[src]

fn rem(self, rhs: Rhs) -> Self::Output[src]

type Output = Self

The resulting type after applying the % operator.

impl<T: TimeInt, Rhs: Duration> Sub<Rhs> for Milliseconds<T> where
    Self: TryFrom<Rhs>,
    Rhs: FixedPoint
[src]

fn sub(self, rhs: Rhs) -> Self::Output[src]

See Add/Sub

type Output = Self

The resulting type after applying the - operator.

impl<T: TimeInt> TryFrom<Duration> for Milliseconds<T> where
    T: TryFrom<u128>, 
[src]

fn try_from(core_duration: Duration) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Milliseconds<DestInt> where
    DestInt: TryFrom<SourceInt>, 
[src]

fn try_from(generic_duration: Generic<SourceInt>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: TimeInt> TryFrom<Hours<T>> for Milliseconds<T>[src]

fn try_from(big: Hours<T>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Hours<u64>> for Milliseconds<u32>[src]

fn try_from(big: Hours<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Microseconds<u64>> for Milliseconds<u32>[src]

fn try_from(small: Microseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: TimeInt> TryFrom<Milliseconds<T>> for Nanoseconds<T>[src]

fn try_from(big: Milliseconds<T>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: TimeInt> TryFrom<Milliseconds<T>> for Microseconds<T>[src]

fn try_from(big: Milliseconds<T>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Milliseconds<u32>[src]

fn try_from(source: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Hours<u32>[src]

fn try_from(small: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Minutes<u32>[src]

fn try_from(small: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Seconds<u32>[src]

fn try_from(small: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Nanoseconds<u32>[src]

fn try_from(big: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Milliseconds<u64>> for Microseconds<u32>[src]

fn try_from(big: Milliseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: TimeInt> TryFrom<Minutes<T>> for Milliseconds<T>[src]

fn try_from(big: Minutes<T>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Minutes<u64>> for Milliseconds<u32>[src]

fn try_from(big: Minutes<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Nanoseconds<u64>> for Milliseconds<u32>[src]

fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: TimeInt> TryFrom<Seconds<T>> for Milliseconds<T>[src]

fn try_from(big: Seconds<T>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Seconds<u64>> for Milliseconds<u32>[src]

fn try_from(big: Seconds<u64>) -> Result<Self, Self::Error>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: Copy + TimeInt> Copy for Milliseconds<T>[src]

impl<T: Eq + TimeInt> Eq for Milliseconds<T>[src]

impl<T: TimeInt> StructuralEq for Milliseconds<T>[src]

Auto Trait Implementations

impl<T> Send for Milliseconds<T> where
    T: Send

impl<T> Sync for Milliseconds<T> where
    T: Sync

impl<T> Unpin for Milliseconds<T> where
    T: Unpin

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]