rustc_trait_selection::traits::project

Trait ProjectionCacheKeyExt

source
pub(crate) trait ProjectionCacheKeyExt<'cx, 'tcx>: Sized {
    // Required method
    fn from_poly_projection_obligation(
        selcx: &mut SelectionContext<'cx, 'tcx>,
        obligation: &PolyProjectionObligation<'tcx>,
    ) -> Option<Self>;
}

Required Methods§

source

fn from_poly_projection_obligation( selcx: &mut SelectionContext<'cx, 'tcx>, obligation: &PolyProjectionObligation<'tcx>, ) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'cx, 'tcx> ProjectionCacheKeyExt<'cx, 'tcx> for ProjectionCacheKey<'tcx>