struct TimeZoneName {
bytes: [u8; 8],
}
Expand description
ASCII-encoded fixed-capacity string, used for storing time zone names
Fields§
§bytes: [u8; 8]
Length-prefixed string buffer
Implementations§
source§impl TimeZoneName
impl TimeZoneName
sourcefn new(input: &[u8]) -> Result<Self, Error>
fn new(input: &[u8]) -> Result<Self, Error>
Construct a time zone name
man tzfile(5): Time zone designations should consist of at least three (3) and no more than six (6) ASCII characters from the set of alphanumerics, “-”, and “+”. This is for compatibility with POSIX requirements for time zone abbreviations.
Trait Implementations§
source§impl AsRef<str> for TimeZoneName
impl AsRef<str> for TimeZoneName
source§impl Clone for TimeZoneName
impl Clone for TimeZoneName
source§fn clone(&self) -> TimeZoneName
fn clone(&self) -> TimeZoneName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimeZoneName
impl Debug for TimeZoneName
source§impl PartialEq for TimeZoneName
impl PartialEq for TimeZoneName
source§fn eq(&self, other: &TimeZoneName) -> bool
fn eq(&self, other: &TimeZoneName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TimeZoneName
impl Eq for TimeZoneName
impl StructuralPartialEq for TimeZoneName
Auto Trait Implementations§
impl Freeze for TimeZoneName
impl RefUnwindSafe for TimeZoneName
impl Send for TimeZoneName
impl Sync for TimeZoneName
impl Unpin for TimeZoneName
impl UnwindSafe for TimeZoneName
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