Enum rustc_hir::intravisit::FnKind [−][src]
pub enum FnKind<'a> {
ItemFn(Ident, &'a Generics<'a>, FnHeader, &'a Visibility<'a>),
Method(Ident, &'a FnSig<'a>, Option<&'a Visibility<'a>>),
Closure,
}Variants
#[xxx] pub async/const/extern "Abi" fn foo()
Tuple Fields of ItemFn
fn foo(&self)
Tuple Fields of Method
|x, y| {}
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for FnKind<'a>
impl<'a> UnwindSafe for FnKind<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes