Struct bao::hash::Hash[][src]

pub struct Hash { /* fields omitted */ }

A Bao hash, with constant-time equality.

Methods

impl Hash
[src]

Create a new Hash from an array of bytes.

Convert the Hash to a byte array. Note that the array type doesn't provide constant time equality.

Convert the Hash to a lowercase hexadecimal ArrayString.

Trait Implementations

impl Clone for Hash
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Hash
[src]

impl PartialEq for Hash
[src]

This implementation is constant time.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This implementation is constant time, if the slice length is HASH_SIZE.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Hash
[src]

impl Debug for Hash
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Hash

impl Sync for Hash