[][src]Struct wit_text::Func

pub struct Func<'a> {
    pub span: Span,
    pub name: Option<Id<'a>>,
    pub export: Option<&'a str>,
    pub ty: TypeUse<'a>,
    pub kind: FuncKind<'a>,

A definition of an adapter function


span: Span

Where this function was defined

name: Option<Id<'a>>

An optional name used to refer to this function

export: Option<&'a str>

An optional name that this function is being exported under

ty: TypeUse<'a>

The type that this function has

kind: FuncKind<'a>

How this function is defined

Trait Implementations

impl<'a> Parse<'a> 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> 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