[][src]Enum rustc_ap_rustc_ast::visit::FnKind

pub enum FnKind<'a> {
    Fn(FnCtxtIdent, &'a FnSig, &'a VisibilityOption<&'a Block>),
    Closure(&'a FnDecl, &'a Expr),
}

Variants

Fn(FnCtxtIdent, &'a FnSig, &'a VisibilityOption<&'a Block>)

E.g., fn foo(), fn foo(&self), or extern "Abi" fn foo().

Closure(&'a FnDecl, &'a Expr)

E.g., |x, y| body.

Methods

impl<'a> FnKind<'a>[src]

pub fn header(&self) -> Option<&'a FnHeader>[src]

pub fn decl(&self) -> &'a FnDecl[src]

pub fn ctxt(&self) -> Option<FnCtxt>[src]

Trait Implementations

impl<'a> Clone for FnKind<'a>[src]

impl<'a> Copy for FnKind<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for FnKind<'a>

impl<'a> !Send for FnKind<'a>

impl<'a> !Sync for FnKind<'a>

impl<'a> Unpin for FnKind<'a>

impl<'a> !UnwindSafe for FnKind<'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<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.