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
ItemFn(Ident, &'a Generics<'a>, FnHeader, &'a Visibility<'a>)
#[xxx] pub async/const/extern "Abi" fn foo()
Tuple Fields of ItemFn
Method(Ident, &'a FnSig<'a>, Option<&'a Visibility<'a>>)
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 even differ between compilations. 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
Size for each variant:
ItemFn
: 39 bytesMethod
: 31 bytesClosure
: 0 bytes