Skip to main content

ProvidedValue

Type Alias ProvidedValue 

Source
pub type ProvidedValue<'tcx> = Value<'tcx>;
Expand description

Type returned from query providers and loaded from disk-cache.

Aliased Type§

pub enum ProvidedValue<'tcx> {
    GCE,
    MCG,
    RepeatExprCount,
    NonTypeSystemAnon,
    NonTypeSystemInline,
}

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

under feature(min_generic_const_args), these may be inline consts as well, and should be treated the same as anon consts.

§

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

§

NonTypeSystemAnon

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

§

NonTypeSystemInline

inline consts outside of the type system

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
  • NonTypeSystemAnon: 0 bytes
  • NonTypeSystemInline: 0 bytes