#[non_exhaustive]pub enum ContentHashAlgorithm {
Sha256,
}Expand description
Cryptographic algorithm carried by a ContentId.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sha256
SHA-256 over the complete original byte sequence.
Trait Implementations§
Source§impl Clone for ContentHashAlgorithm
impl Clone for ContentHashAlgorithm
Source§fn clone(&self) -> ContentHashAlgorithm
fn clone(&self) -> ContentHashAlgorithm
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 ContentHashAlgorithm
Source§impl Debug for ContentHashAlgorithm
impl Debug for ContentHashAlgorithm
impl Eq for ContentHashAlgorithm
Source§impl Hash for ContentHashAlgorithm
impl Hash for ContentHashAlgorithm
Source§impl Ord for ContentHashAlgorithm
impl Ord for ContentHashAlgorithm
Source§fn cmp(&self, other: &ContentHashAlgorithm) -> Ordering
fn cmp(&self, other: &ContentHashAlgorithm) -> 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 ContentHashAlgorithm
impl PartialEq for ContentHashAlgorithm
Source§impl PartialOrd for ContentHashAlgorithm
impl PartialOrd for ContentHashAlgorithm
impl StructuralPartialEq for ContentHashAlgorithm
Auto Trait Implementations§
impl Freeze for ContentHashAlgorithm
impl RefUnwindSafe for ContentHashAlgorithm
impl Send for ContentHashAlgorithm
impl Sync for ContentHashAlgorithm
impl Unpin for ContentHashAlgorithm
impl UnsafeUnpin for ContentHashAlgorithm
impl UnwindSafe for ContentHashAlgorithm
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