[][src]Struct walrus::Function

pub struct Function {
    pub kind: FunctionKind,
    pub name: Option<String>,
    // some fields omitted
}

A wasm function.

Either defined locally or externally and then imported; see FunctionKind.

Fields

kind: FunctionKind

The kind of function this is.

name: Option<String>

An optional name associated with this function

Methods

impl Function[src]

pub fn id(&self) -> FunctionId[src]

Get this function's identifier.

pub fn ty(&self) -> TypeId[src]

Get this function's type's identifier.

Trait Implementations

impl Dot for Function[src]

impl Debug for Function[src]

impl Display for Function[src]

Auto Trait Implementations

impl Send for Function

impl Sync for Function

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.