Struct tzfile::RcTz[][src]

pub struct RcTz(pub Rc<Tz>);

Reference-counted time zone.

This type is equivalent to Rc<Tz>, but needed to workaround Rust’s coherence rule to implement TimeZone.

Implementations

impl RcTz[src]

pub fn new(tz: Tz) -> Self[src]

Wraps an existing Tz object in this reference-counted container.

pub fn named(name: &str) -> Result<Self>[src]

Reads and parses a system time zone.

Equivalent to calling Tz::named() and wraps the result in this reference-counted container.

This function is currently only supported on Unix.

Methods from Deref<Target = Tz>

Trait Implementations

impl Clone for RcTz[src]

impl Debug for RcTz[src]

impl Deref for RcTz[src]

type Target = Tz

The resulting type after dereferencing.

impl Eq for RcTz[src]

impl From<Tz> for RcTz[src]

impl Hash for RcTz[src]

impl PartialEq<RcTz> for RcTz[src]

impl StructuralEq for RcTz[src]

impl StructuralPartialEq for RcTz[src]

impl TimeZone for RcTz[src]

type Offset = Offset<Self>

An associated offset type. This type is used to store the actual offset in date and time types. The original TimeZone value can be recovered via TimeZone::from_offset. Read more

Auto Trait Implementations

impl !RefUnwindSafe for RcTz

impl !Send for RcTz

impl !Sync for RcTz

impl Unpin for RcTz

impl UnwindSafe for RcTz

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, 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.