Enum rustc_typeck::ty::InferConst [−][src]
Expand description
An inference variable for a const, for use in const generics.
Variants
Var(ConstVid<'tcx>)
Tuple Fields
0: ConstVid<'tcx>Infer the value of the const.
Fresh(u32)
Tuple Fields
0: u32A fresh const variable. See infer::freshen for more details.
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for InferConst<'tcx>
impl<'tcx> Send for InferConst<'tcx>
impl<'tcx> Sync for InferConst<'tcx>
impl<'tcx> Unpin for InferConst<'tcx>
impl<'tcx> UnwindSafe for InferConst<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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: 8 bytes
Size for each variant:
Var: 4 bytesFresh: 4 bytes