[−][src]Struct rustc_trait_selection::traits::ImplSourceUserDefinedData

pub struct ImplSourceUserDefinedData<'tcx, N> {
    pub impl_def_id: DefId,
    pub substs: &'tcx List<GenericArg<'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: &'tcx List<GenericArg<'tcx>>nested: Vec<N>

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

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

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]