Type Definition holo_hash::AnyLinkableHash
source · [−]pub type AnyLinkableHash = HoloHash<AnyLinkable>;
Expand description
The hash of anything linkable.
Implementations
sourceimpl AnyLinkableHash
impl AnyLinkableHash
sourcepub fn into_primitive(self) -> AnyLinkableHashPrimitive
pub fn into_primitive(self) -> AnyLinkableHashPrimitive
Match on the primitive hash type represented by this composite hash type
sourcepub fn into_entry_hash(self) -> Option<EntryHash>
pub fn into_entry_hash(self) -> Option<EntryHash>
If this hash represents an EntryHash, return it, else None
sourcepub fn into_header_hash(self) -> Option<HeaderHash>
pub fn into_header_hash(self) -> Option<HeaderHash>
If this hash represents a HeaderHash, return it, else None
sourcepub fn into_external_hash(self) -> Option<ExternalHash>
pub fn into_external_hash(self) -> Option<ExternalHash>
If this hash represents an ExternalHash, return it, else None
Trait Implementations
sourceimpl From<HoloHash<Agent>> for AnyLinkableHash
impl From<HoloHash<Agent>> for AnyLinkableHash
sourcefn from(hash: AgentPubKey) -> Self
fn from(hash: AgentPubKey) -> Self
Converts to this type from the input type.
sourceimpl From<HoloHash<Entry>> for AnyLinkableHash
impl From<HoloHash<Entry>> for AnyLinkableHash
sourceimpl From<HoloHash<External>> for AnyLinkableHash
impl From<HoloHash<External>> for AnyLinkableHash
sourcefn from(hash: ExternalHash) -> Self
fn from(hash: ExternalHash) -> Self
Converts to this type from the input type.
sourceimpl From<HoloHash<Header>> for AnyLinkableHash
impl From<HoloHash<Header>> for AnyLinkableHash
sourcefn from(hash: HeaderHash) -> Self
fn from(hash: HeaderHash) -> Self
Converts to this type from the input type.