Struct rustdoc::clean::auto_trait::AutoTraitFinder[−][src]

pub(crate) struct AutoTraitFinder<'a, 'tcx> {
    pub(crate) cx: &'a mut DocContext<'tcx>,
}

Fields

cx: &'a mut DocContext<'tcx>

Implementations

impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx>[src]

pub(crate) fn new(cx: &'a mut DocContext<'tcx>) -> Self[src]

fn generate_for_trait(
    &mut self,
    ty: Ty<'tcx>,
    trait_def_id: DefId,
    param_env: ParamEnv<'tcx>,
    item_def_id: DefId,
    f: &AutoTraitFinder<'tcx>,
    discard_positive_impl: bool
) -> Option<Item>
[src]

pub(crate) fn get_auto_trait_impls(&mut self, item_def_id: DefId) -> Vec<Item>[src]

fn get_lifetime(
    region: Region<'_>,
    names_map: &FxHashMap<Symbol, Lifetime>
) -> Lifetime
[src]

fn handle_lifetimes<'cx>(
    regions: &RegionConstraintData<'cx>,
    names_map: &FxHashMap<Symbol, Lifetime>
) -> Vec<WherePredicate>
[src]

fn extract_for_generics(
    &self,
    pred: Predicate<'tcx>
) -> FxHashSet<GenericParamDef>
[src]

fn make_final_bounds(
    &self,
    ty_to_bounds: FxHashMap<Type, FxHashSet<GenericBound>>,
    ty_to_fn: FxHashMap<Type, (Option<PolyTrait>, Option<Type>)>,
    lifetime_to_bounds: FxHashMap<Lifetime, FxHashSet<GenericBound>>
) -> Vec<WherePredicate>
[src]

fn param_env_to_generics(
    &mut self,
    item_def_id: DefId,
    param_env: ParamEnv<'tcx>,
    existing_predicates: Vec<WherePredicate>,
    vid_to_region: FxHashMap<RegionVid, Region<'tcx>>
) -> Generics
[src]

fn sort_where_predicates(&self, predicates: &mut Vec<WherePredicate>)[src]

fn sort_where_bounds(&self, bounds: &mut Vec<GenericBound>)[src]

fn unstable_debug_sort<T: Debug>(&self, vec: &mut Vec<T>)[src]

fn is_fn_ty(&self, ty: &Type) -> bool[src]

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for AutoTraitFinder<'a, 'tcx>

impl<'a, 'tcx> !Send for AutoTraitFinder<'a, 'tcx>

impl<'a, 'tcx> !Sync for AutoTraitFinder<'a, 'tcx>

impl<'a, 'tcx> Unpin for AutoTraitFinder<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for AutoTraitFinder<'a, '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<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]