pub struct Interfaces<'input> {
pub version: Version,
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§
§version: VersionVersion of IT.
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.
Implementations§
Source§impl Interfaces<'_>
impl Interfaces<'_>
Sourcepub fn from_version(version: Version) -> Self
pub fn from_version(version: Version) -> Self
Creates a new Interfaces from the provided version.
Trait Implementations§
Source§impl<'input> Clone for Interfaces<'input>
impl<'input> Clone for Interfaces<'input>
Source§fn clone(&self) -> Interfaces<'input>
fn clone(&self) -> Interfaces<'input>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'input> Debug for Interfaces<'input>
impl<'input> Debug for Interfaces<'input>
Source§impl Default for Interfaces<'_>
impl Default for Interfaces<'_>
impl<'input> Eq for Interfaces<'input>
Source§impl<'input> Hash for Interfaces<'input>
impl<'input> Hash for Interfaces<'input>
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>
impl<'input> StructuralPartialEq 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.
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> UnsafeUnpin 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