[−][src]Struct wasmer_cache::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.
pub fn from_str(s: &str) -> Result<Self, Self::Err>[src]
Create hash from hexadecimal representation
impl Hash for Hash[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Hash> for Hash[src]
impl StructuralEq for Hash[src]
impl StructuralPartialEq for Hash[src]
impl ToString for Hash[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash[src]
impl Send for Hash[src]
impl Sync for Hash[src]
impl Unpin for Hash[src]
impl UnwindSafe for Hash[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,