Type Alias holochain::prelude::WasmHashB64

source ·
pub type WasmHashB64 = HoloHashB64<Wasm>;
Expand description

Base64-ready version of WasmHash

Aliased Type§

struct WasmHashB64(/* private fields */);

Implementations§

source§

impl<T> HoloHashB64<T>where T: HashType,

source

pub fn new(__0: HoloHash<T>) -> HoloHashB64<T>

source§

impl<T> HoloHashB64<T>where T: HashType,

source

pub fn from_b64_str(str: &str) -> Result<HoloHashB64<T>, HoloHashError>

Read a HoloHash from base64 string

Trait Implementations§

source§

impl<'a, P> Arbitrary<'a> for HoloHashB64<P>where P: PrimitiveHashType,

source§

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

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

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

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

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<T> AsRef<HoloHash<T>> for HoloHashB64<T>where T: HashType,

source§

fn as_ref(&self) -> &HoloHash<T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T> Clone for HoloHashB64<T>where T: Clone + HashType,

source§

fn clone(&self) -> HoloHashB64<T>

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<T> Debug for HoloHashB64<T>where T: Debug + HashType,

source§

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

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

impl<'de, T> Deserialize<'de> for HoloHashB64<T>where T: HashType + Deserialize<'de>,

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<HoloHashB64<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Display for HoloHashB64<T>where T: HashType, HoloHash<T>: Display,

source§

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

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

impl<T> From<HoloHash<T>> for HoloHashB64<T>where T: HashType,

source§

fn from(original: HoloHash<T>) -> HoloHashB64<T>

Converts to this type from the input type.
source§

impl<T> Hash for HoloHashB64<T>where T: Hash + HashType,

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<T> Ord for HoloHashB64<T>where T: Ord + HashType,

source§

fn cmp(&self, other: &HoloHashB64<T>) -> 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<T> PartialEq<HoloHashB64<T>> for HoloHashB64<T>where T: PartialEq<T> + HashType,

source§

fn eq(&self, other: &HoloHashB64<T>) -> 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<T> PartialOrd<HoloHashB64<T>> for HoloHashB64<T>where T: PartialOrd<T> + HashType,

source§

fn partial_cmp(&self, other: &HoloHashB64<T>) -> 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<T> Serialize for HoloHashB64<T>where T: HashType,

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<T> Eq for HoloHashB64<T>where T: Eq + HashType,

source§

impl<T> StructuralEq for HoloHashB64<T>where T: HashType,

source§

impl<T> StructuralPartialEq for HoloHashB64<T>where T: HashType,