Struct test_assets::Sha256Hash
[−]
[src]
pub struct Sha256Hash(_);
A type for a Sha256 hash value
Provides conversion functionality to hex representation and back
Methods
impl Sha256Hash[src]
pub fn from_digest(sha: &mut Sha256) -> Self[src]
pub fn from_hex(s: &str) -> Result<Self, ()>[src]
Converts the hexadecimal string to a hash value
pub fn to_hex(&self) -> String[src]
Converts the hash value to hexadecimal
Trait Implementations
impl PartialEq for Sha256Hash[src]
fn eq(&self, __arg_0: &Sha256Hash) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Sha256Hash) -> bool[src]
This method tests for !=.
impl Eq for Sha256Hash[src]
impl Hash for Sha256Hash[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Sha256Hash[src]
fn clone(&self) -> Sha256Hash[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more