Struct wasmer_interface_types_fl::ast::Interfaces [−][src]
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>, }
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
impl Interfaces<'_>
[src]
impl Interfaces<'_>
[src]pub fn new() -> Self
[src]
Creates a new Interfaces where version comes from this package version.
pub fn from_version(version: Version) -> Self
[src]
Creates a new Interfaces from the provided version.
Trait Implementations
impl<'input> Clone for Interfaces<'input>
[src]
impl<'input> Clone for Interfaces<'input>
[src]fn clone(&self) -> Interfaces<'input>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Interfaces<'_>
[src]
impl Default for Interfaces<'_>
[src]impl<'input> Eq for Interfaces<'input>
[src]
impl<'input> Eq for Interfaces<'input>
[src]impl<'input> Hash for Interfaces<'input>
[src]
impl<'input> Hash for Interfaces<'input>
[src]impl<'input> PartialEq<Interfaces<'input>> for Interfaces<'input>
[src]
impl<'input> PartialEq<Interfaces<'input>> for Interfaces<'input>
[src]fn eq(&self, other: &Interfaces<'input>) -> bool
[src]
fn ne(&self, other: &Interfaces<'input>) -> bool
[src]
impl<'input> StructuralEq for Interfaces<'input>
[src]
impl<'input> StructuralEq for Interfaces<'input>
[src]impl<'input> StructuralPartialEq for Interfaces<'input>
[src]
impl<'input> StructuralPartialEq for Interfaces<'input>
[src]impl<W> ToBytes<W> for Interfaces<'_> where
W: Write,
[src]
impl<W> ToBytes<W> for Interfaces<'_> where
W: Write,
[src]Encode an Interfaces
into bytes.
Decoder is decoders::binary::parse
.
Auto Trait Implementations
impl<'input> !RefUnwindSafe for Interfaces<'input>
impl<'input> !RefUnwindSafe for Interfaces<'input>
impl<'input> !Send for Interfaces<'input>
impl<'input> !Send for Interfaces<'input>
impl<'input> !Sync for Interfaces<'input>
impl<'input> !Sync for Interfaces<'input>
impl<'input> Unpin for Interfaces<'input>
impl<'input> Unpin for Interfaces<'input>
impl<'input> UnwindSafe for Interfaces<'input>
impl<'input> UnwindSafe for Interfaces<'input>