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) -> TimeZoneName<'d>

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: &TimeZoneName<'d>) -> Ordering

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

fn eq(&self, other: &TimeZoneName<'d>) -> bool

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

fn partial_cmp(&self, other: &TimeZoneName<'d>) -> 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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>