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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

impl<T> WithConstness for T[src]

fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]

fn with_const(self) -> ConstnessAnd<Self>[src]

fn without_const(self) -> ConstnessAnd<Self>[src]

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