Enum libpijul::Hash
[−]
[src]
pub enum Hash { None, Sha512(Sha512), }
Variants
None
Sha512(Sha512)
Methods
impl Hash
[src]
fn from_base64(base64: &str) -> Option<Self>
fn as_ref(&self) -> HashRef
fn of_slice(buf: &[u8]) -> Hash
Trait Implementations
impl Eq for Hash
[src]
impl PartialEq for Hash
[src]
fn eq(&self, __arg_0: &Hash) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hash) -> bool
This method tests for !=
.
impl Hash for Hash
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Debug for Hash
[src]
impl ToBase64 for Hash
[src]
fn to_base64(&self, config: Config) -> String
Converts the value of self
to a base64 value following the specified format configuration, returning the owned string. Read more
impl Clone for Hash
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more