Struct icu::locid_transform::provider::StrStrPair
source · [−]Expand description
A pair of strings with a EncodeAsVarULE implementation.
Tuple Fields
0: Cow<'a, str>
1: Cow<'a, str>
Trait Implementations
sourceimpl<'a> Bake for StrStrPair<'a>
impl<'a> Bake for StrStrPair<'a>
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'a> Clone for StrStrPair<'a>
impl<'a> Clone for StrStrPair<'a>
sourcefn clone(&self) -> StrStrPair<'a>
fn clone(&self) -> StrStrPair<'a>
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<'a> Debug for StrStrPair<'a>
impl<'a> Debug for StrStrPair<'a>
sourceimpl<'de, 'a> Deserialize<'de> for StrStrPair<'a> where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for StrStrPair<'a> where
'de: 'a,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<StrStrPair<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StrStrPair<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> EncodeAsVarULE<StrStrPairVarULE> for StrStrPair<'a>
impl<'a> EncodeAsVarULE<StrStrPairVarULE> for StrStrPair<'a>
sourcefn 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 more
sourcefn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding VarULE
type
sourcefn 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()
Read more
sourceimpl<'a, '_> EncodeAsVarULE<StrStrPairVarULE> for &'_ StrStrPair<'a>
impl<'a, '_> EncodeAsVarULE<StrStrPairVarULE> for &'_ StrStrPair<'a>
sourcefn 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 more
sourcefn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding VarULE
type
sourcefn 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()
Read more
sourceimpl<'a> Ord for StrStrPair<'a>
impl<'a> Ord for StrStrPair<'a>
sourceimpl<'a> PartialEq<StrStrPair<'a>> for StrStrPair<'a>
impl<'a> PartialEq<StrStrPair<'a>> for StrStrPair<'a>
sourcefn eq(&self, other: &StrStrPair<'a>) -> bool
fn eq(&self, other: &StrStrPair<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StrStrPair<'a>) -> bool
fn ne(&self, other: &StrStrPair<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<StrStrPair<'a>> for StrStrPair<'a>
impl<'a> PartialOrd<StrStrPair<'a>> for StrStrPair<'a>
sourcefn partial_cmp(&self, other: &StrStrPair<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &StrStrPair<'a>) -> 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<'a> Serialize for StrStrPair<'a>
impl<'a> Serialize for StrStrPair<'a>
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<'a> ZeroFrom<'a, StrStrPairVarULE> for StrStrPair<'a>
impl<'a> ZeroFrom<'a, StrStrPairVarULE> for StrStrPair<'a>
sourcefn zero_from(other: &'a StrStrPairVarULE) -> StrStrPair<'a>
fn zero_from(other: &'a StrStrPairVarULE) -> StrStrPair<'a>
Clone the other C
into a struct that may retain references into C
.
impl<'a> Eq for StrStrPair<'a>
impl<'a> StructuralEq for StrStrPair<'a>
impl<'a> StructuralPartialEq for StrStrPair<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for StrStrPair<'a>
impl<'a> Send for StrStrPair<'a>
impl<'a> Sync for StrStrPair<'a>
impl<'a> Unpin for StrStrPair<'a>
impl<'a> UnwindSafe for StrStrPair<'a>
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