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§
Source§impl DataMarkerIdHash
 
impl DataMarkerIdHash
Sourcepub const LEADING_TAG: &[u8] = b"tdmh"
 
pub const LEADING_TAG: &[u8] = b"tdmh"
Magic bytes to locate DataMarkerIdHashes in binaries.
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 duplicate 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 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 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 moreSource§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 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