Type Alias Value

Source
pub type Value<'tcx> = AnonConstKind;

Aliased Type§

pub enum Value<'tcx> {
    GCE,
    MCG,
    RepeatExprCount,
    NonTypeSystem,
}

Variants§

§

GCE

feature(generic_const_exprs) anon consts are allowed to use arbitrary generic parameters in scope

§

MCG

stable min_const_generics anon consts are not allowed to use any generic parameters

§

RepeatExprCount

anon consts used as the length of a repeat expr are syntactically allowed to use generic parameters but must not depend on the actual instantiation. See #76200 for more information

§

NonTypeSystem

anon consts outside of the type system, e.g. enum discriminants

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: 1 byte

Size for each variant:

  • GCE: 0 bytes
  • MCG: 0 bytes
  • RepeatExprCount: 0 bytes
  • NonTypeSystem: 0 bytes