[][src]Struct muon_rs::TimeOffset

pub struct TimeOffset(_);

Fixed time offset

Formatted and validated as RFC 3339 time-offset.

use muon_rs::TimeOffset;
let offset = "-05:00".parse::<TimeOffset>().unwrap();
let seconds = offset.seconds();

Methods

impl TimeOffset[src]

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

Get the time offset in seconds

Trait Implementations

impl Clone for TimeOffset[src]

impl Copy for TimeOffset[src]

impl Debug for TimeOffset[src]

impl Display for TimeOffset[src]

impl FromStr for TimeOffset[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<TimeOffset> for TimeOffset[src]

impl StructuralPartialEq for TimeOffset[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.