Struct duniter_documents::Hash [] [src]

pub struct Hash(pub [u8; 32]);

A hash wrapper.

A hash is often provided as string composed of 64 hexadecimal character (0 to 9 then A to F).

Methods

impl Hash
[src]

[src]

Convert a Hash to an hex string.

[src]

Convert a hex string in a Hash.

The hex string must only contains hex characters and produce a 32 bytes value.

Trait Implementations

impl Copy for Hash
[src]

impl Clone for Hash
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Hash
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Hash
[src]

impl Hash for Hash
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Hash
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Hash
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Hash
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Hash

impl Sync for Hash