[][src]Struct wast::Func

pub struct Func<'a> {
    pub span: Span,
    pub name: Option<Id<'a>>,
    pub exports: InlineExport<'a>,
    pub kind: FuncKind<'a>,
    pub ty: TypeUse<'a>,
}

A WebAssembly function to be inserted into a module.

This is a member of both the function and code sections.

Fields

span: Span

Where this func was defined.

name: Option<Id<'a>>

An optional name to reference this function by.

exports: InlineExport<'a>

If present, inline export annotations which indicate names this definition should be exported under.

kind: FuncKind<'a>

What kind of function this is, be it an inline-defined or imported function.

ty: TypeUse<'a>

The type that this function will have.

Trait Implementations

impl<'a> Parse<'a> for Func<'a>[src]

impl<'a> Debug for Func<'a>[src]

Auto Trait Implementations

impl<'a> Send for Func<'a>

impl<'a> Sync for Func<'a>

impl<'a> Unpin for Func<'a>

impl<'a> UnwindSafe for Func<'a>

impl<'a> RefUnwindSafe for Func<'a>

Blanket Implementations

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

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

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]