Struct blot::multihash::Hash  [−][src]
pub struct Hash<T: Multihash> { /* fields omitted */ }
Multihash tagged hash. Tags a harvested digest with a multihash implementation.
Methods
impl<T: Multihash> Hash<T>[src] 
impl<T: Multihash> Hash<T>pub fn new<D: Into<Harvest>>(tag: T, digest: D) -> Hash<T>[src] 
pub fn new<D: Into<Harvest>>(tag: T, digest: D) -> Hash<T>pub fn digest(&self) -> &Harvest[src] 
pub fn digest(&self) -> &Harvestpub fn tag(&self) -> &T[src] 
pub fn tag(&self) -> &TTrait Implementations
impl<T: Debug + Multihash> Debug for Hash<T>[src] 
impl<T: Debug + Multihash> Debug for Hash<T>fn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq + Multihash> PartialEq for Hash<T>[src] 
impl<T: PartialEq + Multihash> PartialEq for Hash<T>fn eq(&self, other: &Hash<T>) -> bool[src] 
fn eq(&self, other: &Hash<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Hash<T>) -> bool[src] 
fn ne(&self, other: &Hash<T>) -> boolThis method tests for !=.
impl<T: Eq + Multihash> Eq for Hash<T>[src] 
impl<T: Eq + Multihash> Eq for Hash<T>impl<T: Hash + Multihash> Hash for Hash<T>[src] 
impl<T: Hash + Multihash> Hash for Hash<T>fn hash<__HT: Hasher>(&self, state: &mut __HT)[src] 
fn hash<__HT: Hasher>(&self, state: &mut __HT)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] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl<T: Multihash> Display for Hash<T>[src] 
impl<T: Multihash> Display for Hash<T>