Struct rustc_hir::hir::Lifetime [−][src]
pub struct Lifetime {
pub hir_id: HirId,
pub span: Span,
pub name: LifetimeName,
}Fields
hir_id: HirIdspan: Spanname: LifetimeNameEither “'a”, referring to a named lifetime definition,
or “``” (i.e., kw::Empty), for elision placeholders.
HIR lowering inserts these placeholders in type paths that
refer to type definitions needing lifetime parameters,
&T and &mut T, and trait objects without ... + 'a.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lifetimeimpl UnwindSafe for LifetimeBlanket 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: 32 bytes