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

pub enum FnKind<'a> {
    ItemFn(Name, &'a GenericsUnsafetyConstnessAbi, &'a Visibility&'a [Attribute]),
    Method(Name, &'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?

fn foo() or 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 [u8]
[src]

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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