Struct rustc_middle::traits::ImplSourceUserDefinedData[][src]

pub struct ImplSourceUserDefinedData<'tcx, N> {
    pub impl_def_id: DefId,
    pub substs: SubstsRef<'tcx>,
    pub nested: Vec<N>,
}

Identifies a particular impl in the source, along with a set of substitutions from the impl’s type/lifetime parameters. The nested vector corresponds to the nested obligations attached to the impl’s type parameters.

The type parameter N indicates the type used for “nested obligations” that are required by the impl. During type-check, this is Obligation, as one might expect. During codegen, however, this is (), because codegen only requires a shallow resolution of an impl, and nested obligations are satisfied later.

Fields

impl_def_id: DefIdsubsts: SubstsRef<'tcx>nested: Vec<N>

Trait Implementations

impl<'tcx, N: Clone> Clone for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, N: Debug> Debug for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, N, __D: TyDecoder<'tcx>> Decodable<__D> for ImplSourceUserDefinedData<'tcx, N> where
    N: Decodable<__D>, 
[src]

impl<'tcx, N, __E: TyEncoder<'tcx>> Encodable<__E> for ImplSourceUserDefinedData<'tcx, N> where
    N: Encodable<__E>, 
[src]

impl<'tcx, N: Eq> Eq for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, '__ctx, N> HashStable<StableHashingContext<'__ctx>> for ImplSourceUserDefinedData<'tcx, N> where
    N: HashStable<StableHashingContext<'__ctx>>, 
[src]

impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceUserDefinedData<'tcx, N> where
    N: Lift<'__lifted>, 
[src]

type Lifted = ImplSourceUserDefinedData<'__lifted, N::Lifted>

impl<'tcx, N: PartialEq> PartialEq<ImplSourceUserDefinedData<'tcx, N>> for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, N> StructuralEq for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, N> StructuralPartialEq for ImplSourceUserDefinedData<'tcx, N>[src]

impl<'tcx, N> TypeFoldable<'tcx> for ImplSourceUserDefinedData<'tcx, N> where
    N: TypeFoldable<'tcx>, 
[src]

Auto Trait Implementations

impl<'tcx, N> !RefUnwindSafe for ImplSourceUserDefinedData<'tcx, N>

impl<'tcx, N> !Send for ImplSourceUserDefinedData<'tcx, N>

impl<'tcx, N> !Sync for ImplSourceUserDefinedData<'tcx, N>

impl<'tcx, N> Unpin for ImplSourceUserDefinedData<'tcx, N> where
    N: Unpin

impl<'tcx, N> !UnwindSafe for ImplSourceUserDefinedData<'tcx, N>

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> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[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]