pub enum HashFunctionLabel {
Blake3,
Sha256,
}Expand description
Identifier string for the cache’s hash function, matching the
CACHE-002 registry: "blake3" or "sha256".
Variants§
Trait Implementations§
Source§impl Clone for HashFunctionLabel
impl Clone for HashFunctionLabel
Source§fn clone(&self) -> HashFunctionLabel
fn clone(&self) -> HashFunctionLabel
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 moreSource§impl Debug for HashFunctionLabel
impl Debug for HashFunctionLabel
Source§impl<'de> Deserialize<'de> for HashFunctionLabel
impl<'de> Deserialize<'de> for HashFunctionLabel
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 From<HashAlgo> for HashFunctionLabel
impl From<HashAlgo> for HashFunctionLabel
Source§impl From<HashFunctionLabel> for HashAlgo
impl From<HashFunctionLabel> for HashAlgo
Source§fn from(label: HashFunctionLabel) -> Self
fn from(label: HashFunctionLabel) -> Self
Converts to this type from the input type.
Source§impl Ord for HashFunctionLabel
impl Ord for HashFunctionLabel
Source§fn cmp(&self, other: &HashFunctionLabel) -> Ordering
fn cmp(&self, other: &HashFunctionLabel) -> 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 HashFunctionLabel
impl PartialEq for HashFunctionLabel
Source§fn eq(&self, other: &HashFunctionLabel) -> bool
fn eq(&self, other: &HashFunctionLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HashFunctionLabel
impl PartialOrd for HashFunctionLabel
Source§impl Serialize for HashFunctionLabel
impl Serialize for HashFunctionLabel
impl Copy for HashFunctionLabel
impl Eq for HashFunctionLabel
impl StructuralPartialEq for HashFunctionLabel
Auto Trait Implementations§
impl Freeze for HashFunctionLabel
impl RefUnwindSafe for HashFunctionLabel
impl Send for HashFunctionLabel
impl Sync for HashFunctionLabel
impl Unpin for HashFunctionLabel
impl UnsafeUnpin for HashFunctionLabel
impl UnwindSafe for HashFunctionLabel
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