Enum sleep_parser::HashType [−][src]
pub enum HashType {
BLAKE2b,
Ed25519,
None,
}Algorithm used for hashing the data.
Variants
BLAKE2bBLAKE2b hashing algorithm.
Ed25519Ed25519 hashing algorithm.
NoneNo hashing used.
Methods
impl HashType[src]
impl HashTypepub fn is_blake2b(&self) -> bool[src]
pub fn is_blake2b(&self) -> boolReturns true if the hash is BLAKE2b
pub fn is_ed25519(&self) -> bool[src]
pub fn is_ed25519(&self) -> boolReturns true if the hash is Ed25519
pub fn is_none(&self) -> bool[src]
pub fn is_none(&self) -> boolReturns true if no hash function was used.
Trait Implementations
impl Debug for HashType[src]
impl Debug for HashTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for HashType[src]
impl PartialEq for HashType