pub struct Interfaces<'input> {
pub types: Vec<Type>,
pub imports: Vec<Import<'input>>,
pub adapters: Vec<Adapter>,
pub exports: Vec<Export<'input>>,
pub implementations: Vec<Implementation>,
}Expand description
Represents a set of interfaces, i.e. it entirely describes a WIT definition.
Fields§
§types: Vec<Type>All the types.
imports: Vec<Import<'input>>All the imported functions.
adapters: Vec<Adapter>All the adapters.
exports: Vec<Export<'input>>All the exported functions.
implementations: Vec<Implementation>All the implementations.
Trait Implementations§
Source§impl<'input> Debug for Interfaces<'input>
impl<'input> Debug for Interfaces<'input>
Source§impl<'input> Default for Interfaces<'input>
impl<'input> Default for Interfaces<'input>
Source§fn default() -> Interfaces<'input>
fn default() -> Interfaces<'input>
Returns the “default value” for a type. Read more
Source§impl<'a> Parse<'a> for Interfaces<'a>
impl<'a> Parse<'a> for Interfaces<'a>
Source§impl<'input> PartialEq for Interfaces<'input>
impl<'input> PartialEq for Interfaces<'input>
Source§impl<W> ToBytes<W> for Interfaces<'_>where
W: Write,
Encode an Interfaces into bytes.
impl<W> ToBytes<W> for Interfaces<'_>where
W: Write,
Encode an Interfaces into bytes.
Decoder is decoders::binary::parse.
Source§impl<'input> ToString for &Interfaces<'input>
Encode an Interfaces into a string.
impl<'input> ToString for &Interfaces<'input>
Encode an Interfaces into a string.
impl<'input> StructuralPartialEq for Interfaces<'input>
Auto Trait Implementations§
impl<'input> Freeze for Interfaces<'input>
impl<'input> RefUnwindSafe for Interfaces<'input>
impl<'input> Send for Interfaces<'input>
impl<'input> Sync for Interfaces<'input>
impl<'input> Unpin for Interfaces<'input>
impl<'input> UnwindSafe for Interfaces<'input>
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