Struct rustc_middle::hir::map::blocks::ItemFnParts [−][src]
struct ItemFnParts<'a> {
ident: Ident,
decl: &'a FnDecl<'a>,
header: FnHeader,
vis: &'a Visibility<'a>,
generics: &'a Generics<'a>,
body: BodyId,
id: HirId,
span: Span,
}
Expand description
These are all the components one can extract from a fn item for use when implementing FnLikeNode operations.
Fields
ident: Ident
decl: &'a FnDecl<'a>
header: FnHeader
vis: &'a Visibility<'a>
generics: &'a Generics<'a>
body: BodyId
id: HirId
span: Span
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemFnParts<'a>
impl<'a> !Send for ItemFnParts<'a>
impl<'a> !Sync for ItemFnParts<'a>
impl<'a> Unpin for ItemFnParts<'a>
impl<'a> UnwindSafe for ItemFnParts<'a>
Blanket Implementations
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: 72 bytes