Enum wasmtime::Precompiled
source · pub enum Precompiled {
Module,
Component,
}
Expand description
Return value from the Engine::detect_precompiled
API.
Variants§
Module
The input bytes look like a precompiled core wasm module.
Component
The input bytes look like a precompiled wasm component.
Trait Implementations§
source§impl Clone for Precompiled
impl Clone for Precompiled
source§fn clone(&self) -> Precompiled
fn clone(&self) -> Precompiled
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Precompiled
impl Debug for Precompiled
source§impl PartialEq for Precompiled
impl PartialEq for Precompiled
source§fn eq(&self, other: &Precompiled) -> bool
fn eq(&self, other: &Precompiled) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Precompiled
impl Eq for Precompiled
impl StructuralEq for Precompiled
impl StructuralPartialEq for Precompiled
Auto Trait Implementations§
impl RefUnwindSafe for Precompiled
impl Send for Precompiled
impl Sync for Precompiled
impl Unpin for Precompiled
impl UnwindSafe for Precompiled
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more