Type Definition holo_hash::AnyLinkableHash

source ·
pub type AnyLinkableHash = HoloHash<AnyLinkable>;
Expand description

The hash of anything linkable.

Implementations§

source§

impl AnyLinkableHash

source

pub fn into_primitive(self) -> AnyLinkableHashPrimitive

Match on the primitive hash type represented by this composite hash type

source

pub fn into_entry_hash(self) -> Option<EntryHash>

If this hash represents an EntryHash, return it, else None

source

pub fn into_action_hash(self) -> Option<ActionHash>

If this hash represents a ActionHash, return it, else None

source

pub fn into_external_hash(self) -> Option<ExternalHash>

If this hash represents an ExternalHash, return it, else None

Trait Implementations§

source§

impl From<HoloHash<Action>> for AnyLinkableHash

source§

fn from(hash: ActionHash) -> Self

Converts to this type from the input type.
source§

impl From<HoloHash<Agent>> for AnyLinkableHash

source§

fn from(hash: AgentPubKey) -> Self

Converts to this type from the input type.
source§

impl From<HoloHash<AnyDht>> for AnyLinkableHash

source§

fn from(hash: AnyDhtHash) -> Self

Converts to this type from the input type.
source§

impl From<HoloHash<Entry>> for AnyLinkableHash

source§

fn from(hash: EntryHash) -> Self

Converts to this type from the input type.
source§

impl From<HoloHash<External>> for AnyLinkableHash

source§

fn from(hash: ExternalHash) -> Self

Converts to this type from the input type.