Struct hash_rs::Digest [] [src]

pub struct Digest(pub [u8; 64]);

Methods

impl Digest
[src]

fn keccak(m: &[u8]) -> Digest

fn sha1(m: &[u8]) -> Digest

Trait Implementations

impl Clone for Digest
[src]

fn clone(&self) -> Self

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 Digest
[src]

impl LowerHex for Digest
[src]

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

Formats the value using the given formatter.

impl Display for Digest
[src]

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

Formats the value using the given formatter.

impl Debug for Digest
[src]

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

Formats the value using the given formatter.

impl PartialEq for Digest
[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 Eq for Digest
[src]