Struct icu_locid_transform::provider::LanguageStrStrPair
source · pub struct LanguageStrStrPair<'a>(pub Language, pub Cow<'a, str>, pub Cow<'a, str>);
Expand description
A triplet of strings with a EncodeAsVarULE implementation.
Tuple Fields§
§0: Language
§1: Cow<'a, str>
§2: Cow<'a, str>
Trait Implementations§
source§impl<'a> Clone for LanguageStrStrPair<'a>
impl<'a> Clone for LanguageStrStrPair<'a>
source§fn clone(&self) -> LanguageStrStrPair<'a>
fn clone(&self) -> LanguageStrStrPair<'a>
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<'a> Debug for LanguageStrStrPair<'a>
impl<'a> Debug for LanguageStrStrPair<'a>
source§impl<'a> EncodeAsVarULE<LanguageStrStrPairVarULE> for &LanguageStrStrPair<'a>
impl<'a> EncodeAsVarULE<LanguageStrStrPairVarULE> for &LanguageStrStrPair<'a>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'a> EncodeAsVarULE<LanguageStrStrPairVarULE> for LanguageStrStrPair<'a>
impl<'a> EncodeAsVarULE<LanguageStrStrPairVarULE> for LanguageStrStrPair<'a>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'a> Ord for LanguageStrStrPair<'a>
impl<'a> Ord for LanguageStrStrPair<'a>
source§fn cmp(&self, other: &LanguageStrStrPair<'a>) -> Ordering
fn cmp(&self, other: &LanguageStrStrPair<'a>) -> 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<'a> PartialEq for LanguageStrStrPair<'a>
impl<'a> PartialEq for LanguageStrStrPair<'a>
source§fn eq(&self, other: &LanguageStrStrPair<'a>) -> bool
fn eq(&self, other: &LanguageStrStrPair<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for LanguageStrStrPair<'a>
impl<'a> PartialOrd for LanguageStrStrPair<'a>
source§fn partial_cmp(&self, other: &LanguageStrStrPair<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &LanguageStrStrPair<'a>) -> 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<'a> ZeroFrom<'a, LanguageStrStrPairVarULE> for LanguageStrStrPair<'a>
impl<'a> ZeroFrom<'a, LanguageStrStrPairVarULE> for LanguageStrStrPair<'a>
source§fn zero_from(other: &'a LanguageStrStrPairVarULE) -> Self
fn zero_from(other: &'a LanguageStrStrPairVarULE) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<'a> Eq for LanguageStrStrPair<'a>
impl<'a> StructuralPartialEq for LanguageStrStrPair<'a>
Auto Trait Implementations§
impl<'a> Freeze for LanguageStrStrPair<'a>
impl<'a> RefUnwindSafe for LanguageStrStrPair<'a>
impl<'a> Send for LanguageStrStrPair<'a>
impl<'a> Sync for LanguageStrStrPair<'a>
impl<'a> Unpin for LanguageStrStrPair<'a>
impl<'a> UnwindSafe for LanguageStrStrPair<'a>
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