[−][src]Enum rustc_hir::intravisit::FnKind

pub enum FnKind<'a> {
    ItemFn(Ident, &'a Generics<'a>, FnHeader, &'a Visibility<'a>, &'a [Attribute]),
    Method(Ident, &'a FnSig<'a>, Option<&'a Visibility<'a>>, &'a [Attribute]),
    Closure(&'a [Attribute]),
}

Variants

ItemFn(Ident, &'a Generics<'a>, FnHeader, &'a Visibility<'a>, &'a [Attribute])

#[xxx] pub async/const/extern "Abi" fn foo()

Method(Ident, &'a FnSig<'a>, Option<&'a Visibility<'a>>, &'a [Attribute])

fn foo(&self)

Closure(&'a [Attribute])

|x, y| {}

Implementations

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

pub fn attrs(&self) -> &'a [Attribute][src]

pub fn header(&self) -> Option<&FnHeader>[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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.