Struct blake2_rfc::blake2b::Blake2bResult
[−]
[src]
pub struct Blake2bResult { /* fields omitted */ }
Container for a hash result.
This container uses a constant-time comparison for equality.
If a constant-time comparison is not necessary, the hash
result can be extracted with the as_bytes
method.
Methods
impl Blake2bResult
[src]
fn as_bytes(&self) -> &[u8]
Returns the contained hash result as a byte string.
fn len(&self) -> usize
Returns the length of the hash result.
This is the same value that was used to create the hash context.
Trait Implementations
impl Clone for Blake2bResult
[src]
fn clone(&self) -> Blake2bResult
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
impl Copy for Blake2bResult
[src]
impl Debug for Blake2bResult
[src]
impl AsRef<[u8]> for Blake2bResult
[src]
impl Eq for Blake2bResult
[src]
impl PartialEq for Blake2bResult
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.