Enum rustc::hir::intravisit::FnKind[][src]

pub enum FnKind<'a> {
    ItemFn(Name, &'a GenericsFnHeader, &'a Visibility&'a [Attribute]),
    Method(Ident, &'a MethodSigOption<&'a Visibility>, &'a [Attribute]),
    Closure(&'a [Attribute]),
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

fn foo(&self)

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

|x, y| {}

Methods

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

Important traits for &'a mut [u8]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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