Struct TimeZoneName

pub struct TimeZoneName<'d> { /* private fields */ }

A name for a time zone yield by the TimeZoneNameIter iterator.

The iterator is created by TimeZoneDatabase::available.

The lifetime parameter corresponds to the lifetime of the TimeZoneDatabase from which this name was created.

Implementations

impl<'d> TimeZoneName<'d>

fn as_str<'a>(&'a self) -> &'a str

Returns this time zone name as a borrowed string.

Note that the lifetime of the string returned is tied to self, which may be shorter than the lifetime 'd of the originating TimeZoneDatabase.

Trait Implementations

impl<'d> Clone for TimeZoneName<'d>

fn clone(&self) -> Self

impl<'d> Debug for TimeZoneName<'d>

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

impl<'d> Display for TimeZoneName<'d>

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

impl<'d> Eq for TimeZoneName<'d>

impl<'d> Hash for TimeZoneName<'d>

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

impl<'d> Ord for TimeZoneName<'d>

fn cmp(&self, other: &Self) -> Ordering

impl<'d> PartialEq for TimeZoneName<'d>

fn eq(&self, other: &Self) -> bool

impl<'d> PartialOrd for TimeZoneName<'d>

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

impl<'d> StructuralPartialEq for TimeZoneName<'d>

Auto Trait Implementations

impl<'d> Freeze for TimeZoneName<'d>

impl<'d> RefUnwindSafe for TimeZoneName<'d>

impl<'d> Send for TimeZoneName<'d>

impl<'d> Sync for TimeZoneName<'d>

impl<'d> Unpin for TimeZoneName<'d>

impl<'d> UnsafeUnpin for TimeZoneName<'d>

impl<'d> UnwindSafe for TimeZoneName<'d>

Blanket Implementations

impl<T> Any for TimeZoneName<'d> where T: 'static + ?Sized,

impl<T> Borrow<T> for TimeZoneName<'d> where T: ?Sized,

impl<T> BorrowMut<T> for TimeZoneName<'d> where T: ?Sized,

impl<T> CloneToUninit for TimeZoneName<'d> where T: Clone,

impl<T> From<T> for TimeZoneName<'d>

impl<T> ToOwned for TimeZoneName<'d> where T: Clone,

impl<T> ToString for TimeZoneName<'d> where T: Display + ?Sized,

impl<T, U> Into<U> for TimeZoneName<'d> where U: From<T>,

impl<T, U> TryFrom<U> for TimeZoneName<'d> where U: Into<T>,

impl<T, U> TryInto<U> for TimeZoneName<'d> where U: TryFrom<T>,