pub enum Bindings {
Wit(WitBindings),
Wai(WaiBindings),
}
Expand description
The interface exposed by a Module
.
Variants
Wit(WitBindings)
Wai(WaiBindings)
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Bindings
impl<'de> Deserialize<'de> for Bindings
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.