pub type ProvidedValue<'tcx> = AnonConstKind;
Expand description
This type alias specifies the type returned from query providers and the type
used for decoding. For regular queries this is the declared returned type V
,
but arena_cache
will use <V as ArenaCached>::Provided
instead.
Aliased Type§
pub enum ProvidedValue<'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 bytesMCG
: 0 bytesRepeatExprCount
: 0 bytesNonTypeSystem
: 0 bytes