[][src]Struct avro_rs::Duration

pub struct Duration { /* fields omitted */ }

A struct representing duration that hides the details of endianness and conversion between platform-native u32 and byte arrays.

Implementations

impl Duration[src]

pub fn new(months: Months, days: Days, millis: Millis) -> Self[src]

Construct a new Duration.

pub fn months(&self) -> Months[src]

Return the number of months in this duration.

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

Return the number of days in this duration.

pub fn millis(&self) -> Millis[src]

Return the number of milliseconds in this duration.

Trait Implementations

impl Clone for Duration[src]

impl Copy for Duration[src]

impl Debug for Duration[src]

impl From<[u8; 12]> for Duration[src]

impl From<Duration> for [u8; 12][src]

impl PartialEq<Duration> for Duration[src]

impl StructuralPartialEq for Duration[src]

impl ToAvro for Duration[src]

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,