pub type HashTypeAnyLinkable = AnyLinkable;

Aliased Type§

enum HashTypeAnyLinkable {
    Entry,
    Action,
    External,
}

Variants§

§

Entry

The hash of an Entry

§

Action

The hash of an action

§

External

The hash of an External thing.

Trait Implementations§

source§

impl<'arbitrary> Arbitrary<'arbitrary> for AnyLinkable

source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<AnyLinkable, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

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 more
source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl Clone for AnyLinkable

source§

fn clone(&self) -> AnyLinkable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AnyLinkable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AnyLinkable

source§

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

source§

fn from(t: AnyDht) -> AnyLinkable

Converts to this type from the input type.
source§

impl From<AnyLinkableSerial> for AnyLinkable

source§

fn from(t: AnyLinkableSerial) -> AnyLinkable

Converts to this type from the input type.
source§

impl Hash for AnyLinkable

source§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl HashType for AnyLinkable

source§

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>

Given a 3-byte prefix, return the corresponding HashType, or error if mismatched. Trivial for PrimitiveHashType, but useful for composite types
source§

fn hash_name(self) -> &'static str

Get a Display-worthy name for this hash type
source§

impl Ord for AnyLinkable

source§

fn cmp(&self, other: &AnyLinkable) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<AnyLinkable> for AnyLinkable

source§

fn eq(&self, other: &AnyLinkable) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<AnyLinkable> for AnyLinkable

source§

fn partial_cmp(&self, other: &AnyLinkable) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for AnyLinkable

source§

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

§

type Error = SerializedBytesError

The type returned in the event of a conversion error.
source§

fn try_from(sb: SerializedBytes) -> Result<AnyLinkable, SerializedBytesError>

Performs the conversion.
source§

impl Copy for AnyLinkable

source§

impl Eq for AnyLinkable

source§

impl HashTypeSync for AnyLinkable

source§

impl StructuralEq for AnyLinkable

source§

impl StructuralPartialEq for AnyLinkable