Type Alias holochain::core::fixt::HashTypeAnyLinkable
source · pub type HashTypeAnyLinkable = AnyLinkable;
Aliased Type§
enum HashTypeAnyLinkable {
Entry,
Action,
External,
}
Variants§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for AnyLinkable
impl<'arbitrary> Arbitrary<'arbitrary> for AnyLinkable
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<AnyLinkable, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<AnyLinkable, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<AnyLinkable, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<AnyLinkable, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for AnyLinkable
impl Clone for AnyLinkable
source§fn clone(&self) -> AnyLinkable
fn clone(&self) -> AnyLinkable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnyLinkable
impl Debug for AnyLinkable
source§impl<'de> Deserialize<'de> for AnyLinkable
impl<'de> Deserialize<'de> for AnyLinkable
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AnyLinkable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AnyLinkable, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<AnyDht> for AnyLinkable
impl From<AnyDht> for AnyLinkable
source§fn from(t: AnyDht) -> AnyLinkable
fn from(t: AnyDht) -> AnyLinkable
Converts to this type from the input type.
source§impl From<AnyLinkableSerial> for AnyLinkable
impl From<AnyLinkableSerial> for AnyLinkable
source§fn from(t: AnyLinkableSerial) -> AnyLinkable
fn from(t: AnyLinkableSerial) -> AnyLinkable
Converts to this type from the input type.
source§impl Hash for AnyLinkable
impl Hash for AnyLinkable
source§impl HashType for AnyLinkable
impl HashType for AnyLinkable
source§fn get_prefix(self) -> &'static [u8] ⓘ
fn get_prefix(self) -> &'static [u8] ⓘ
Get the 3-byte prefix for the underlying primitive hash type
source§fn try_from_prefix(prefix: &[u8]) -> Result<AnyLinkable, HoloHashError>
fn try_from_prefix(prefix: &[u8]) -> Result<AnyLinkable, HoloHashError>
Given a 3-byte prefix, return the corresponding HashType, or error if mismatched.
Trivial for PrimitiveHashType, but useful for composite types
source§impl Ord for AnyLinkable
impl Ord for AnyLinkable
source§fn cmp(&self, other: &AnyLinkable) -> Ordering
fn cmp(&self, other: &AnyLinkable) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AnyLinkable> for AnyLinkable
impl PartialEq<AnyLinkable> for AnyLinkable
source§fn eq(&self, other: &AnyLinkable) -> bool
fn eq(&self, other: &AnyLinkable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AnyLinkable> for AnyLinkable
impl PartialOrd<AnyLinkable> for AnyLinkable
source§fn partial_cmp(&self, other: &AnyLinkable) -> Option<Ordering>
fn partial_cmp(&self, other: &AnyLinkable) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AnyLinkable
impl Serialize for AnyLinkable
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<SerializedBytes> for AnyLinkable
impl TryFrom<SerializedBytes> for AnyLinkable
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(sb: SerializedBytes) -> Result<AnyLinkable, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AnyLinkable, SerializedBytesError>
Performs the conversion.