Enum rustc_trait_selection::infer::region_constraints::GenericKind [−][src]
pub enum GenericKind<'tcx> {
Param(ParamTy),
Projection(ProjectionTy<'tcx>),
}
Variants
Param(ParamTy)
Tuple Fields of Param
0: ParamTy
Projection(ProjectionTy<'tcx>)
Tuple Fields of Projection
0: ProjectionTy<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for GenericKind<'tcx>
impl<'tcx> !Send for GenericKind<'tcx>
impl<'tcx> !Sync for GenericKind<'tcx>
impl<'tcx> Unpin for GenericKind<'tcx>
impl<'tcx> !UnwindSafe for GenericKind<'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: 24 bytes
Size for each variant:
Param
: 8 bytesProjection
: 20 bytes