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

Trait Implementations

Source§

impl<T: Clone, U: Clone> Clone for PreciseCapturingArgKind<T, U>

Source§

fn clone(&self) -> PreciseCapturingArgKind<T, U>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, U: Debug> Debug for PreciseCapturingArgKind<T, U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, U, __D: SpanDecoder> Decodable<__D> for PreciseCapturingArgKind<T, U>
where T: Decodable<__D>, U: Decodable<__D>,

Source§

fn decode(__decoder: &mut __D) -> Self

Source§

impl<T, U, __E: SpanEncoder> Encodable<__E> for PreciseCapturingArgKind<T, U>
where T: Encodable<__E>, U: Encodable<__E>,

Source§

fn encode(&self, __encoder: &mut __E)

Source§

impl<T, U, __CTX> HashStable<__CTX> for PreciseCapturingArgKind<T, U>
where __CTX: HashStableContext, T: HashStable<__CTX>, U: HashStable<__CTX>,

Source§

fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)

Source§

impl<T: Copy, U: Copy> Copy for PreciseCapturingArgKind<T, U>