[][src]Enum wit_text::FuncKind

pub enum FuncKind<'a> {
    Import {
        module: &'a str,
        name: &'a str,
    },
    Inline {
        instrs: Instructions<'a>,
    },
}

Different flavors of functions that can be defined.

Variants

Import

An sugared import declaration.

Fields of Import

module: &'a str

Where we're importing from

name: &'a str

What we're importing

Inline

An inline function definition which contains actual instructions

Fields of Inline

instrs: Instructions<'a>

Auto Trait Implementations

impl<'a> Send for FuncKind<'a>

impl<'a> Sync for FuncKind<'a>

impl<'a> Unpin for FuncKind<'a>

impl<'a> UnwindSafe for FuncKind<'a>

impl<'a> RefUnwindSafe for FuncKind<'a>

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]