Struct wasmer_interface_types_fl::ast::Interfaces
source · 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: Version
Version 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 copy of the value. Read more
1.0.0 · 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<'_>
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>
source§fn eq(&self, other: &Interfaces<'input>) -> bool
fn eq(&self, other: &Interfaces<'input>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<W> ToBytes<W> for Interfaces<'_>where
W: Write,
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>
impl<'input> ToString for &Interfaces<'input>
Encode an Interfaces
into a string.
impl<'input> Eq for Interfaces<'input>
impl<'input> StructuralEq for Interfaces<'input>
impl<'input> StructuralPartialEq for Interfaces<'input>
Auto Trait Implementations§
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