Struct bip_util::sha::ShaHash [] [src]

pub struct ShaHash { /* fields omitted */ }

SHA-1 hash wrapper type for performing operations on the hash.

Methods

impl ShaHash
[src]

Create a ShaHash by hashing the given bytes.

Create a ShaHash directly from the given hash.

Trait Implementations

impl Copy for ShaHash
[src]

impl Clone for ShaHash
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ShaHash
[src]

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

This method tests for !=.

impl Eq for ShaHash
[src]

impl Hash for ShaHash
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for ShaHash
[src]

Formats the value using the given formatter.

impl PartialOrd for ShaHash
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for ShaHash
[src]

This method returns an Ordering between self and other. Read more

impl AsRef<[u8]> for ShaHash
[src]

Performs the conversion.

impl Into<[u8; 20]> for ShaHash
[src]

Performs the conversion.

impl From<[u8; 20]> for ShaHash
[src]

Performs the conversion.

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

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

This method tests for !=.

impl BitXor<ShaHash> for ShaHash
[src]

The resulting type after applying the ^ operator

The method for the ^ operator