Struct icu::locid_transform::provider::StrStrPairVarULE
source · [−]#[repr(packed)]pub struct StrStrPairVarULE(_);
Expand description
VarULE
type for StrStrPair
Trait Implementations
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 Ord for StrStrPairVarULE
impl Ord for StrStrPairVarULE
sourceimpl PartialEq<StrStrPairVarULE> for StrStrPairVarULE
impl PartialEq<StrStrPairVarULE> for StrStrPairVarULE
sourcefn eq(&self, other: &StrStrPairVarULE) -> bool
fn eq(&self, other: &StrStrPairVarULE) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StrStrPairVarULE) -> bool
fn ne(&self, other: &StrStrPairVarULE) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StrStrPairVarULE> for StrStrPairVarULE
impl PartialOrd<StrStrPairVarULE> for StrStrPairVarULE
sourcefn partial_cmp(&self, other: &StrStrPairVarULE) -> Option<Ordering>
fn partial_cmp(&self, other: &StrStrPairVarULE) -> 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 StrStrPairVarULE
impl Serialize for StrStrPairVarULE
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 VarULE for StrStrPairVarULE
impl VarULE for StrStrPairVarULE
sourcefn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice, &[u8]
. Read more
sourceunsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &StrStrPairVarULE
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &StrStrPairVarULE
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
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
sourcefn as_byte_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn as_byte_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Given &Self
, returns a &[u8]
with the same lifetime. Read more
sourcefn to_boxed(&self) -> Box<Self, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn to_boxed(&self) -> Box<Self, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Allocate on the heap as a Box<T>
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
.
sourceimpl<'a> ZeroMapKV<'a> for StrStrPairVarULE
impl<'a> ZeroMapKV<'a> for StrStrPairVarULE
type Container = VarZeroVec<'a, StrStrPairVarULE, Index16>
type Container = VarZeroVec<'a, StrStrPairVarULE, Index16>
The container that can be used with this type: ZeroVec
or VarZeroVec
.
type Slice = VarZeroSlice<StrStrPairVarULE, Index16>
type GetType = StrStrPairVarULE
type GetType = StrStrPairVarULE
The type produced by Container::get()
Read more
type OwnedType = Box<StrStrPairVarULE, Global>
type OwnedType = Box<StrStrPairVarULE, Global>
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 Eq for StrStrPairVarULE
impl StructuralEq for StrStrPairVarULE
impl StructuralPartialEq for StrStrPairVarULE
Auto Trait Implementations
impl RefUnwindSafe for StrStrPairVarULE
impl Send for StrStrPairVarULE
impl !Sized for StrStrPairVarULE
impl Sync for StrStrPairVarULE
impl Unpin for StrStrPairVarULE
impl UnwindSafe for StrStrPairVarULE
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> EncodeAsVarULE<T> for T where
T: VarULE + ?Sized,
impl<T> EncodeAsVarULE<T> for T where
T: VarULE + ?Sized,
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