pub struct DataMarkerIdHash(/* private fields */);
Expand description
A compact hash of a DataMarkerInfo
. Useful for keys in maps.
The hash will be stable over time within major releases.
Implementations§
Trait Implementations§
Source§impl AsULE for DataMarkerIdHash
impl AsULE for DataMarkerIdHash
Source§type ULE = DataMarkerIdHash
type ULE = DataMarkerIdHash
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 DataMarkerIdHash
impl Clone for DataMarkerIdHash
Source§fn clone(&self) -> DataMarkerIdHash
fn clone(&self) -> DataMarkerIdHash
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 DataMarkerIdHash
impl Debug for DataMarkerIdHash
Source§impl<'de> Deserialize<'de> for DataMarkerIdHash
impl<'de> Deserialize<'de> for DataMarkerIdHash
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 DataMarkerIdHash
impl Hash for DataMarkerIdHash
Source§impl Ord for DataMarkerIdHash
impl Ord for DataMarkerIdHash
Source§fn cmp(&self, other: &DataMarkerIdHash) -> Ordering
fn cmp(&self, other: &DataMarkerIdHash) -> 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 DataMarkerIdHash
impl PartialEq for DataMarkerIdHash
Source§impl PartialOrd for DataMarkerIdHash
impl PartialOrd for DataMarkerIdHash
Source§impl Serialize for DataMarkerIdHash
impl Serialize for DataMarkerIdHash
Source§impl ULE for DataMarkerIdHash
impl ULE for DataMarkerIdHash
Source§fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read more§fn parse_bytes_to_slice(bytes: &[u8]) -> Result<&[Self], UleError>
fn parse_bytes_to_slice(bytes: &[u8]) -> Result<&[Self], UleError>
§unsafe fn slice_from_bytes_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn slice_from_bytes_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_bytes_to_slice()
] with
success. Read more§fn slice_as_bytes(slice: &[Self]) -> &[u8] ⓘ
fn slice_as_bytes(slice: &[Self]) -> &[u8] ⓘ
Source§impl<'a> ZeroMapKV<'a> for DataMarkerIdHash
impl<'a> ZeroMapKV<'a> for DataMarkerIdHash
Source§type Container = ZeroVec<'a, DataMarkerIdHash>
type Container = ZeroVec<'a, DataMarkerIdHash>
The container that can be used with this type: [
ZeroVec
] or [VarZeroVec
].type Slice = ZeroSlice<DataMarkerIdHash>
Source§type GetType = <DataMarkerIdHash as AsULE>::ULE
type GetType = <DataMarkerIdHash as AsULE>::ULE
The type produced by
Container::get()
Read moreSource§type OwnedType = DataMarkerIdHash
type OwnedType = DataMarkerIdHash
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 DataMarkerIdHash
impl Eq for DataMarkerIdHash
impl EqULE for DataMarkerIdHash
impl StructuralPartialEq for DataMarkerIdHash
Auto Trait Implementations§
impl Freeze for DataMarkerIdHash
impl RefUnwindSafe for DataMarkerIdHash
impl Send for DataMarkerIdHash
impl Sync for DataMarkerIdHash
impl Unpin for DataMarkerIdHash
impl UnwindSafe for DataMarkerIdHash
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more