Struct wasmer_cache_asml_fork::Hash[][src]

pub struct Hash(_);

A hash used as a key when loading and storing modules in a [Cache].

Implementations

impl Hash[src]

pub fn new(bytes: [u8; 32]) -> Self[src]

Creates a new instance from 32 raw bytes. Does not perform any hashing. In order to create a hash from data, use Hash::generate.

pub fn generate(bytes: &[u8]) -> Self[src]

Creates a new hash from a slice of bytes.

Trait Implementations

impl Clone for Hash[src]

impl Copy for Hash[src]

impl Debug for Hash[src]

impl Eq for Hash[src]

impl FromStr for Hash[src]

type Err = DeserializeError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Create hash from hexadecimal representation

impl Hash for Hash[src]

impl PartialEq<Hash> for Hash[src]

impl StructuralEq for Hash[src]

impl StructuralPartialEq for Hash[src]

impl ToString for Hash[src]

fn to_string(&self) -> String[src]

Create the hexadecimal representation of the stored hash.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.