[−][src]Struct rustc_infer::traits::query::DtorckConstraint

pub struct DtorckConstraint<'tcx> {
    pub outlives: Vec<GenericArg<'tcx>>,
    pub dtorck_types: Vec<&'tcx TyS<'tcx>>,
    pub overflows: Vec<&'tcx TyS<'tcx>>,
}

A set of constraints that need to be satisfied in order for a type to be valid for destruction.

Fields

outlives: Vec<GenericArg<'tcx>>

Types that are required to be alive in order for this type to be valid for destruction.

dtorck_types: Vec<&'tcx TyS<'tcx>>

Types that could not be resolved: projections and params.

overflows: Vec<&'tcx TyS<'tcx>>

If, during the computation of the dtorck constraint, we overflow, that gets recorded here. The caller is expected to report an error.

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for DtorckConstraint<'tcx>

impl<'tcx> !Send for DtorckConstraint<'tcx>

impl<'tcx> !Sync for DtorckConstraint<'tcx>

impl<'tcx> Unpin for DtorckConstraint<'tcx>

impl<'tcx> !UnwindSafe for DtorckConstraint<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]