[][src]Struct witx::InterfaceFuncParam

pub struct InterfaceFuncParam {
    pub name: Id,
    pub type_: DatatypeIdent,
    pub position: InterfaceFuncParamPosition,
}

Fields

name: Idtype_: DatatypeIdentposition: InterfaceFuncParamPosition

Methods

impl InterfaceFuncParam[src]

pub fn pass_by_value(&self) -> Option<CoreParamType>[src]

Gives the WebAssembly type that corresponds to passing this interface func parameter by value. Not all types can be passed by value: those which cannot return None

pub fn pass_by_reference(&self) -> Vec<CoreParamType>[src]

Gives the WebAssembly types that correspond to passing this interface func parameter by reference. Some types are passed by reference using a single pointer, others require both a pointer and length.

Trait Implementations

impl Clone for InterfaceFuncParam[src]

impl Eq for InterfaceFuncParam[src]

impl PartialEq<InterfaceFuncParam> for InterfaceFuncParam[src]

impl Debug for InterfaceFuncParam[src]

impl StructuralPartialEq for InterfaceFuncParam[src]

impl StructuralEq for InterfaceFuncParam[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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