Enum wasmer_toml::Bindings
source · pub enum Bindings {
Wit(WitBindings),
Wai(WaiBindings),
}
Expand description
The interface exposed by a Module
.
Variants§
Wit(WitBindings)
Wai(WaiBindings)
Implementations§
source§impl Bindings
impl Bindings
sourcepub fn referenced_files(
&self,
base_directory: &Path
) -> Result<Vec<PathBuf>, ImportsError>
pub fn referenced_files( &self, base_directory: &Path ) -> Result<Vec<PathBuf>, ImportsError>
Get all files that make up this interface.
For all binding types except WitBindings
, this will recursively
look for any files that are imported.
The caller can assume that any path that was referenced exists.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bindings
impl<'de> Deserialize<'de> for Bindings
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Bindings
impl PartialEq for Bindings
impl Eq for Bindings
impl StructuralEq for Bindings
impl StructuralPartialEq for Bindings
Auto Trait Implementations§
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
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
source§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,
source§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
§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.