pub struct FeatureHash(/* private fields */);Expand description
A 128-bit feature hash.
Feature hashes are candidate-index keys, not stable identifiers: they are
valid only within one FEATURE_SCHEMA_VERSION. Each is a BLAKE3 digest
over a domain string, the schema version and the feature’s length-prefixed
inputs, truncated to 16 bytes.
Implementations§
Trait Implementations§
Source§impl Clone for FeatureHash
impl Clone for FeatureHash
Source§fn clone(&self) -> FeatureHash
fn clone(&self) -> FeatureHash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FeatureHash
Source§impl Debug for FeatureHash
impl Debug for FeatureHash
Source§impl Display for FeatureHash
impl Display for FeatureHash
impl Eq for FeatureHash
Source§impl Hash for FeatureHash
impl Hash for FeatureHash
Source§impl Ord for FeatureHash
impl Ord for FeatureHash
Source§fn cmp(&self, other: &FeatureHash) -> Ordering
fn cmp(&self, other: &FeatureHash) -> Ordering
1.21.0 (const: unstable) · 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 FeatureHash
impl PartialEq for FeatureHash
Source§impl PartialOrd for FeatureHash
impl PartialOrd for FeatureHash
impl StructuralPartialEq for FeatureHash
Auto Trait Implementations§
impl Freeze for FeatureHash
impl RefUnwindSafe for FeatureHash
impl Send for FeatureHash
impl Sync for FeatureHash
impl Unpin for FeatureHash
impl UnsafeUnpin for FeatureHash
impl UnwindSafe for FeatureHash
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.