Enum rustc_infer::traits::query::OutlivesBound [−][src]
pub enum OutlivesBound<'tcx> {
RegionSubRegion(&'tcx RegionKind, &'tcx RegionKind),
RegionSubParam(&'tcx RegionKind, ParamTy),
RegionSubProjection(&'tcx RegionKind, ProjectionTy<'tcx>),
}Expand description
Outlives bounds are relationships between generic parameters,
whether they both be regions ('a: 'b) or whether types are
involved (T: 'a). These relationships can be extracted from the
full set of predicates we understand or also from types (in which
case they are called implied bounds). They are fed to the
OutlivesEnv which in turn is supplied to the region checker and
other parts of the inference system.
Variants
RegionSubRegion(&'tcx RegionKind, &'tcx RegionKind)RegionSubParam(&'tcx RegionKind, ParamTy)RegionSubProjection(&'tcx RegionKind, ProjectionTy<'tcx>)Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for OutlivesBound<'tcx>
impl<'tcx> !Send for OutlivesBound<'tcx>
impl<'tcx> !Sync for OutlivesBound<'tcx>
impl<'tcx> Unpin for OutlivesBound<'tcx>
impl<'tcx> !UnwindSafe for OutlivesBound<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<'tcx, T> Subst<'tcx> for T where
T: TypeFoldable<'tcx>, [src]
impl<'tcx, T> Subst<'tcx> for T where
T: TypeFoldable<'tcx>, [src]pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T[src]
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
fn subst(self, tcx: TyCtxt<'tcx>, substs: &[GenericArg<'tcx>]) -> Self[src]
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,