Type Alias PreciseCapturingArg

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

Aliased Type§

pub 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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.