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

Fields

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> RefUnwindSafe for Func<'a>

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

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

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

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

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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 = 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.