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]

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> Debug for Interfaces<'input>[src]

impl Default for Interfaces<'_>[src]

impl<'input> Eq for Interfaces<'input>[src]

impl<'input> Hash for Interfaces<'input>[src]

impl<'a> Parse<'a> for Interfaces<'a>[src]

impl<'input> PartialEq<Interfaces<'input>> for Interfaces<'input>[src]

impl<'input> StructuralEq for Interfaces<'input>[src]

impl<'input> StructuralPartialEq for Interfaces<'input>[src]

impl<W> ToBytes<W> for Interfaces<'_> where
    W: Write
[src]

Encode an Interfaces into bytes.

Decoder is decoders::binary::parse.

impl<'input> ToString for &Interfaces<'input>[src]

Encode an Interfaces into a string.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.