Enum syntax::visit::FnKind [] [src]

pub enum FnKind<'a> {
    ItemFn(IdentUnsafetySpanned<Constness>, Abi, &'a Visibility, &'a Block),
    Method(Ident, &'a MethodSigOption<&'a Visibility>, &'a Block),
    Closure(&'a Expr),
}
🔬 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| body

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]