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
impl Eq for Bindings
impl StructuralPartialEq for Bindings
Auto Trait Implementations§
impl Freeze for Bindings
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.