#[non_exhaustive]pub struct TimeZone { /* private fields */ }Expand description
A time zone’s name as the system gives it: an IANA name
(Europe/Berlin, America/Argentina/Buenos_Aires, UTC), or an offset
zone where the system has one (Android’s GMT+01:00). Held inline so
that the environment stays Copy.
Implementations§
Source§impl TimeZone
impl TimeZone
Sourcepub fn parse(identifier: &str) -> Option<TimeZone>
pub fn parse(identifier: &str) -> Option<TimeZone>
The zone of a platform identifier: an IANA name (Europe/Berlin),
with POSIX TZ’s leading : (:Europe/Berlin), or as a path into
a zone database (/usr/share/zoneinfo/Europe/Berlin,
/var/db/timezone/zoneinfo/Europe/Berlin). None for what names no
zone: empty, longer than any zone’s name, or with characters zone
names do not have.
Trait Implementations§
impl Copy for TimeZone
impl Eq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Forget for TimeZone
impl Freeze for TimeZone
impl Move for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnsafeUnpin for TimeZone
impl UnwindSafe for TimeZone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<E> IntoThrown for Ewhere
E: Display,
impl<E> IntoThrown for Ewhere
E: Display,
Source§fn into_thrown(self) -> Thrown
fn into_thrown(self) -> Thrown
The exception.