Enum rustc_trait_selection::infer::ValuePairs [−][src]
pub enum ValuePairs<'tcx> {
Types(ExpectedFound<&'tcx TyS<'tcx>>),
Regions(ExpectedFound<&'tcx RegionKind>),
Consts(ExpectedFound<&'tcx Const<'tcx>>),
TraitRefs(ExpectedFound<TraitRef<'tcx>>),
PolyTraitRefs(ExpectedFound<Binder<'tcx, TraitRef<'tcx>>>),
}
Expand description
See the error_reporting
module for more details.
Variants
Types(ExpectedFound<&'tcx TyS<'tcx>>)
Tuple Fields of Types
0: ExpectedFound<&'tcx TyS<'tcx>>
Regions(ExpectedFound<&'tcx RegionKind>)
Tuple Fields of Regions
0: ExpectedFound<&'tcx RegionKind>
Consts(ExpectedFound<&'tcx Const<'tcx>>)
Tuple Fields of Consts
0: ExpectedFound<&'tcx Const<'tcx>>
TraitRefs(ExpectedFound<TraitRef<'tcx>>)
Tuple Fields of TraitRefs
0: ExpectedFound<TraitRef<'tcx>>
PolyTraitRefs(ExpectedFound<Binder<'tcx, TraitRef<'tcx>>>)
Tuple Fields of PolyTraitRefs
0: ExpectedFound<Binder<'tcx, TraitRef<'tcx>>>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ValuePairs<'tcx>
impl<'tcx> !Send for ValuePairs<'tcx>
impl<'tcx> !Sync for ValuePairs<'tcx>
impl<'tcx> Unpin for ValuePairs<'tcx>
impl<'tcx> !UnwindSafe for ValuePairs<'tcx>
Blanket Implementations
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
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: 56 bytes
Size for each variant:
Types
: 16 bytesRegions
: 16 bytesConsts
: 16 bytesTraitRefs
: 32 bytesPolyTraitRefs
: 48 bytes