Type Alias PreciseCapturingArg

Source
pub type PreciseCapturingArg<'hir> = PreciseCapturingArgKind<&'hir Lifetime, PreciseCapturingNonLifetimeArg>;

Aliased Type§

enum PreciseCapturingArg<'hir> {
    Lifetime(&'hir Lifetime),
    Param(PreciseCapturingNonLifetimeArg),
}

Variants§

§

Lifetime(&'hir Lifetime)

§

Param(PreciseCapturingNonLifetimeArg)

Non-lifetime argument (type or const)

Implementations§

Source§

impl PreciseCapturingArg<'_>

Source

pub fn hir_id(self) -> HirId

Source

pub fn name(self) -> Symbol

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: 32 bytes

Size for each variant:

  • Lifetime: 16 bytes
  • Param: 32 bytes