Trait holo_hash::HashableContent[][src]

pub trait HashableContent: Sized {
    type HashType: HashType;
    fn hash_type(&self) -> Self::HashType;
fn hashable_content(&self) -> HashableContentBytes; }

Any implementor of HashableContent may be used in a HoloHashed to pair data with its HoloHash representation. It also has an associated HashType.

Associated Types

type HashType: HashType[src]

The HashType which this content will be hashed to

Loading content...

Required methods

fn hash_type(&self) -> Self::HashType[src]

The HashType which this content will be hashed to

fn hashable_content(&self) -> HashableContentBytes[src]

Return a subset of the content, either as SerializedBytes “content”, which will be used to compute the hash, or as an already precomputed hash which will be used directly

Loading content...

Implementors

Loading content...