[][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.



An sugared import declaration.

Fields of Import

module: &'a str

Where we're importing from

name: &'a str

What we're importing


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>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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