Enum rustc::hir::intravisit::FnKind
[−]
[src]
pub enum FnKind<'a> { ItemFn(Name, &'a Generics, Unsafety, Constness, Abi, &'a Visibility, &'a [Attribute]), Method(Name, &'a MethodSig, Option<&'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
ItemFn(Name, &'a Generics, Unsafety, Constness, Abi, &'a Visibility, &'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?
fn foo() or extern "Abi" fn foo()
Method(Name, &'a MethodSig, Option<&'a Visibility>, &'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?
fn foo(&self)
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?
|x, y| {}
Methods
impl<'a> FnKind<'a>
[src]
pub fn attrs(&self) -> &'a [Attribute]
[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]
fn clone(&self) -> FnKind<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for FnKind<'a>
[src]
fn eq(&self, __arg_0: &FnKind<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FnKind<'a>) -> bool
[src]
This method tests for !=
.