Struct icu_timezone::provider::TimeZoneBcp47Id
source · #[repr(transparent)]pub struct TimeZoneBcp47Id(pub TinyAsciiStr<8>);
Expand description
TimeZone ID in BCP47 format
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fields§
§0: TinyAsciiStr<8>
Trait Implementations§
source§impl AsULE for TimeZoneBcp47Id
impl AsULE for TimeZoneBcp47Id
§type ULE = TimeZoneBcp47Id
type ULE = TimeZoneBcp47Id
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
source§impl Bake for TimeZoneBcp47Id
impl Bake for TimeZoneBcp47Id
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl Clone for TimeZoneBcp47Id
impl Clone for TimeZoneBcp47Id
source§fn clone(&self) -> TimeZoneBcp47Id
fn clone(&self) -> TimeZoneBcp47Id
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 TimeZoneBcp47Id
impl Debug for TimeZoneBcp47Id
source§impl<'de> Deserialize<'de> for TimeZoneBcp47Id
impl<'de> Deserialize<'de> for TimeZoneBcp47Id
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TimeZoneBcp47Id> for TinyAsciiStr<8>
impl From<TimeZoneBcp47Id> for TinyAsciiStr<8>
source§fn from(other: TimeZoneBcp47Id) -> Self
fn from(other: TimeZoneBcp47Id) -> Self
Converts to this type from the input type.
source§impl From<TinyAsciiStr<8>> for TimeZoneBcp47Id
impl From<TinyAsciiStr<8>> for TimeZoneBcp47Id
source§fn from(s: TinyAsciiStr<8>) -> Self
fn from(s: TinyAsciiStr<8>) -> Self
Converts to this type from the input type.
source§impl FromStr for TimeZoneBcp47Id
impl FromStr for TimeZoneBcp47Id
source§impl Hash for TimeZoneBcp47Id
impl Hash for TimeZoneBcp47Id
source§impl Ord for TimeZoneBcp47Id
impl Ord for TimeZoneBcp47Id
source§fn cmp(&self, other: &TimeZoneBcp47Id) -> Ordering
fn cmp(&self, other: &TimeZoneBcp47Id) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TimeZoneBcp47Id
impl PartialEq for TimeZoneBcp47Id
source§fn eq(&self, other: &TimeZoneBcp47Id) -> bool
fn eq(&self, other: &TimeZoneBcp47Id) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimeZoneBcp47Id
impl PartialOrd for TimeZoneBcp47Id
source§fn partial_cmp(&self, other: &TimeZoneBcp47Id) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeZoneBcp47Id) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TimeZoneBcp47Id
impl Serialize for TimeZoneBcp47Id
source§impl ULE for TimeZoneBcp47Id
impl ULE for TimeZoneBcp47Id
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice,
&[u8]
. Read moresource§fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
source§unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
Takes a byte slice,
&[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read moresource§impl<'a> Yokeable<'a> for TimeZoneBcp47Id
impl<'a> Yokeable<'a> for TimeZoneBcp47Id
§type Output = TimeZoneBcp47Id
type Output = TimeZoneBcp47Id
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'a> ZeroMapKV<'a> for TimeZoneBcp47Id
impl<'a> ZeroMapKV<'a> for TimeZoneBcp47Id
§type Container = ZeroVec<'a, TimeZoneBcp47Id>
type Container = ZeroVec<'a, TimeZoneBcp47Id>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<TimeZoneBcp47Id>
§type GetType = TimeZoneBcp47Id
type GetType = TimeZoneBcp47Id
The type produced by
Container::get()
Read more§type OwnedType = TimeZoneBcp47Id
type OwnedType = TimeZoneBcp47Id
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for TimeZoneBcp47Id
impl Eq for TimeZoneBcp47Id
impl StructuralEq for TimeZoneBcp47Id
impl StructuralPartialEq for TimeZoneBcp47Id
Auto Trait Implementations§
impl RefUnwindSafe for TimeZoneBcp47Id
impl Send for TimeZoneBcp47Id
impl Sync for TimeZoneBcp47Id
impl Unpin for TimeZoneBcp47Id
impl UnwindSafe for TimeZoneBcp47Id
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