[][src]Struct wasmer_cache::Hash

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 hash. Has to be encodable as a hex format.

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.

pub 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]

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

Create the hexadecimal representation of the stored hash.

Auto Trait Implementations

impl RefUnwindSafe for Hash

impl Send for Hash

impl Sync for Hash

impl Unpin for Hash

impl UnwindSafe for Hash

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.