Struct icu_provider::DataKeyHash
source · pub struct DataKeyHash(/* private fields */);
Expand description
A compact hash of a DataKey
. Useful for keys in maps.
The hash will be stable over time within major releases.
Implementations§
Trait Implementations§
source§impl AsULE for DataKeyHash
impl AsULE for DataKeyHash
§type ULE = DataKeyHash
type ULE = DataKeyHash
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 Clone for DataKeyHash
impl Clone for DataKeyHash
source§fn clone(&self) -> DataKeyHash
fn clone(&self) -> DataKeyHash
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 DataKeyHash
impl Debug for DataKeyHash
source§impl Hash for DataKeyHash
impl Hash for DataKeyHash
source§impl Ord for DataKeyHash
impl Ord for DataKeyHash
source§fn cmp(&self, other: &DataKeyHash) -> Ordering
fn cmp(&self, other: &DataKeyHash) -> 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 DataKeyHash
impl PartialEq for DataKeyHash
source§fn eq(&self, other: &DataKeyHash) -> bool
fn eq(&self, other: &DataKeyHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DataKeyHash
impl PartialOrd for DataKeyHash
source§fn partial_cmp(&self, other: &DataKeyHash) -> Option<Ordering>
fn partial_cmp(&self, other: &DataKeyHash) -> 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 ULE for DataKeyHash
impl ULE for DataKeyHash
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> ZeroMapKV<'a> for DataKeyHash
impl<'a> ZeroMapKV<'a> for DataKeyHash
§type Container = ZeroVec<'a, DataKeyHash>
type Container = ZeroVec<'a, DataKeyHash>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<DataKeyHash>
§type OwnedType = DataKeyHash
type OwnedType = DataKeyHash
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 DataKeyHash
impl Eq for DataKeyHash
impl EqULE for DataKeyHash
impl StructuralPartialEq for DataKeyHash
Auto Trait Implementations§
impl Freeze for DataKeyHash
impl RefUnwindSafe for DataKeyHash
impl Send for DataKeyHash
impl Sync for DataKeyHash
impl Unpin for DataKeyHash
impl UnwindSafe for DataKeyHash
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)