Struct icu_provider::DataKeyHash
source · #[repr(transparent)]pub struct DataKeyHash(_);
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<'de> Deserialize<'de> for DataKeyHash
impl<'de> Deserialize<'de> for DataKeyHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<DataKeyHash> for DataKeyHash
impl PartialEq<DataKeyHash> 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<DataKeyHash> for DataKeyHash
impl PartialOrd<DataKeyHash> 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 Serialize for DataKeyHash
impl Serialize for DataKeyHash
source§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 more