Struct dir_signature::HashType
[−]
[src]
pub struct HashType(_);
A type of hash supported by the library
Methods
impl HashType
[src]
pub fn sha512_256() -> HashType
[src]
Constructs SHA512/256 checksum truncated to 256 bits
pub fn blake2b_256() -> HashType
[src]
Constructs 256bits (32 bytes) Blake2b checksum
pub fn output_bytes(self) -> usize
[src]
Get the digest size in bytes
Trait Implementations
impl FromStr for HashType
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(val: &str) -> Result<HashType, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl Copy for HashType
[src]
impl Clone for HashType
[src]
fn clone(&self) -> HashType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for HashType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for HashType
[src]
fn eq(&self, __arg_0: &HashType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HashType) -> bool
[src]
This method tests for !=
.