Struct blake2_rfc::blake2s::Blake2sResult [] [src]

pub struct Blake2sResult {
    // some 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 Blake2sResult
[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 Debug for Blake2sResult
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Blake2sResult
[src]

impl Clone for Blake2sResult
[src]

fn clone(&self) -> Blake2sResult

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 AsRef<[u8]> for Blake2sResult
[src]

fn as_ref(&self) -> &[u8]

Performs the conversion.

impl Eq for Blake2sResult
[src]

impl PartialEq for Blake2sResult
[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 !=.

impl PartialEq<[u8]> for Blake2sResult
[src]

fn eq(&self, other: &[u8]) -> 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 !=.