Struct icu::timezone::TimeZoneBcp47Id
source · [−]#[repr(transparent)]pub struct TimeZoneBcp47Id(pub TinyAsciiStr<8_usize>);
Expand description
TimeZone ID in BCP47 format
Tuple Fields
0: TinyAsciiStr<8_usize>
Trait Implementations
sourceimpl AsULE for TimeZoneBcp47Id
impl AsULE for TimeZoneBcp47Id
type ULE = TimeZoneBcp47Id
type ULE = TimeZoneBcp47Id
The ULE type corresponding to Self
. Read more
sourcefn to_unaligned(self) -> <TimeZoneBcp47Id as AsULE>::ULE
fn to_unaligned(self) -> <TimeZoneBcp47Id as AsULE>::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(unaligned: <TimeZoneBcp47Id as AsULE>::ULE) -> TimeZoneBcp47Id
fn from_unaligned(unaligned: <TimeZoneBcp47Id as AsULE>::ULE) -> TimeZoneBcp47Id
Converts from Self::ULE
to Self
. Read more
sourceimpl Clone for TimeZoneBcp47Id
impl Clone for TimeZoneBcp47Id
sourcefn clone(&self) -> TimeZoneBcp47Id
fn clone(&self) -> TimeZoneBcp47Id
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimeZoneBcp47Id
impl Debug for TimeZoneBcp47Id
sourceimpl<'de> Deserialize<'de> for TimeZoneBcp47Id
impl<'de> Deserialize<'de> for TimeZoneBcp47Id
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZoneBcp47Id, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZoneBcp47Id, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<TinyAsciiStr<8_usize>> for TimeZoneBcp47Id
impl From<TinyAsciiStr<8_usize>> for TimeZoneBcp47Id
sourcefn from(s: TinyAsciiStr<8_usize>) -> TimeZoneBcp47Id
fn from(s: TinyAsciiStr<8_usize>) -> TimeZoneBcp47Id
Converts to this type from the input type.
sourceimpl FromStr for TimeZoneBcp47Id
impl FromStr for TimeZoneBcp47Id
type Err = TinyStrError
type Err = TinyStrError
The associated error which can be returned from parsing.
sourcefn from_str(
s: &str
) -> Result<TimeZoneBcp47Id, <TimeZoneBcp47Id as FromStr>::Err>
fn from_str(
s: &str
) -> Result<TimeZoneBcp47Id, <TimeZoneBcp47Id as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for TimeZoneBcp47Id
impl Hash for TimeZoneBcp47Id
sourceimpl Ord for TimeZoneBcp47Id
impl Ord for TimeZoneBcp47Id
sourceimpl PartialEq<TimeZoneBcp47Id> for TimeZoneBcp47Id
impl PartialEq<TimeZoneBcp47Id> for TimeZoneBcp47Id
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TimeZoneBcp47Id) -> bool
fn ne(&self, other: &TimeZoneBcp47Id) -> bool
This method tests for !=
.
sourceimpl PartialOrd<TimeZoneBcp47Id> for TimeZoneBcp47Id
impl PartialOrd<TimeZoneBcp47Id> for TimeZoneBcp47Id
sourcefn partial_cmp(&self, other: &TimeZoneBcp47Id) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeZoneBcp47Id) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for TimeZoneBcp47Id
impl Serialize for TimeZoneBcp47Id
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl ULE for TimeZoneBcp47Id
impl ULE for TimeZoneBcp47Id
sourcefn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice, &[u8]
. Read more
sourcefn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
Parses a byte slice, &[u8]
, and return it as &[Self]
with the same lifetime. Read more
sourceunsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
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 more
sourceimpl<'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>
sourcefn transform(&self) -> &<TimeZoneBcp47Id as Yokeable<'a>>::Output
fn transform(&self) -> &<TimeZoneBcp47Id as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> <TimeZoneBcp47Id as Yokeable<'a>>::Output
fn transform_owned(self) -> <TimeZoneBcp47Id as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe fn make(
this: <TimeZoneBcp47Id as Yokeable<'a>>::Output
) -> TimeZoneBcp47Id
unsafe fn make(
this: <TimeZoneBcp47Id as Yokeable<'a>>::Output
) -> TimeZoneBcp47Id
This method can be used to cast away Self<'a>
’s lifetime. Read more
sourcefn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut <TimeZoneBcp47Id as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut <TimeZoneBcp47Id as Yokeable<'a>>::Output),
This method must cast self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more
sourceimpl<'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 more
impl Copy for TimeZoneBcp47Id
impl Eq for TimeZoneBcp47Id
impl<'a> IsCovariant<'a> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more