Skip to main content

LocalKey

Type Alias LocalKey 

Source
pub type LocalKey<'tcx> = LitToConstInput<'tcx>;

Aliased Type§

pub struct LocalKey<'tcx> {
    pub lit: LitKind,
    pub ty: Ty<'tcx>,
    pub neg: bool,
}

Fields§

§lit: LitKind

The absolute value of the resultant constant.

§ty: Ty<'tcx>

The type of the constant.

§neg: bool

If the constant is negative.

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