pub type AnyLinkableHash = HoloHash<AnyLinkable>;Expand description
The hash of anything linkable.
Aliased Type§
struct AnyLinkableHash { /* private fields */ }Implementations§
Source§impl 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_any_dht_hash(self) -> Option<AnyDhtHash>
pub fn into_any_dht_hash(self) -> Option<AnyDhtHash>
Downcast to AnyDhtHash if this is not an external hash
Sourcepub fn into_action_hash(self) -> Option<ActionHash>
pub fn into_action_hash(self) -> Option<ActionHash>
If this hash represents an ActionHash, return it, else None
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_agent_pub_key(self) -> Option<AgentPubKey>
pub fn into_agent_pub_key(self) -> Option<AgentPubKey>
If this hash represents an EntryHash which is actually an AgentPubKey, 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§
Source§impl From<HoloHash<Action>> for AnyLinkableHash
impl From<HoloHash<Action>> for AnyLinkableHash
Source§fn from(hash: ActionHash) -> Self
fn from(hash: ActionHash) -> Self
Converts to this type from the input type.
Source§impl From<HoloHash<Agent>> for AnyLinkableHash
impl From<HoloHash<Agent>> for AnyLinkableHash
Source§fn from(hash: AgentPubKey) -> Self
fn from(hash: AgentPubKey) -> Self
Converts to this type from the input type.
Source§impl From<HoloHash<AnyDht>> for AnyLinkableHash
impl From<HoloHash<AnyDht>> for AnyLinkableHash
Source§fn from(hash: AnyDhtHash) -> Self
fn from(hash: AnyDhtHash) -> Self
Converts to this type from the input type.
Source§impl From<HoloHash<External>> for AnyLinkableHash
impl From<HoloHash<External>> for AnyLinkableHash
Source§fn from(hash: ExternalHash) -> Self
fn from(hash: ExternalHash) -> Self
Converts to this type from the input type.