[][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 Debug for Function[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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]