[][src]Struct iso8601_duration::Duration

pub struct Duration {
    pub year: f32,
    pub month: f32,
    pub day: f32,
    pub hour: f32,
    pub minute: f32,
    pub second: f32,
}

Fields

year: f32month: f32day: f32hour: f32minute: f32second: f32

Methods

impl Duration[src]

pub fn new(
    year: f32,
    month: f32,
    day: f32,
    hour: f32,
    minute: f32,
    second: f32
) -> Self
[src]

pub fn to_std(&self) -> StdDuration[src]

pub fn parse(input: &str) -> Result<Duration, Err<(&str, ErrorKind)>>[src]

Trait Implementations

impl PartialEq<Duration> for Duration[src]

impl Debug for Duration[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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