Enum rust_cascade::HashAlgorithm
source · #[repr(u8)]
pub enum HashAlgorithm {
MurmurHash3,
Sha256l32,
Sha256,
}
Expand description
These enumerations need to match the python filter-cascade project: https://github.com/mozilla/filter-cascade/blob/v0.3.0/filtercascade/fileformats.py
Variants§
Trait Implementations§
source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 Display for HashAlgorithm
impl Display for HashAlgorithm
source§impl PartialEq<HashAlgorithm> for HashAlgorithm
impl PartialEq<HashAlgorithm> for HashAlgorithm
source§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for HashAlgorithm
impl TryFrom<u8> for HashAlgorithm
§type Error = CascadeError
type Error = CascadeError
The type returned in the event of a conversion error.
source§fn try_from(value: u8) -> Result<HashAlgorithm, CascadeError>
fn try_from(value: u8) -> Result<HashAlgorithm, CascadeError>
Performs the conversion.