Struct rustdoc::clean::auto_trait::AutoTraitFinder [−][src]
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]
&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>
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]
region: Region<'_>,
names_map: &FxHashMap<Symbol, Lifetime>
) -> Lifetime
fn handle_lifetimes<'cx>(
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<Symbol, Lifetime>
) -> Vec<WherePredicate>[src]
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<Symbol, Lifetime>
) -> Vec<WherePredicate>
fn extract_for_generics(
&self,
pred: Predicate<'tcx>
) -> FxHashSet<GenericParamDef>[src]
&self,
pred: Predicate<'tcx>
) -> FxHashSet<GenericParamDef>
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]
&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>
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]
&mut self,
item_def_id: DefId,
param_env: ParamEnv<'tcx>,
existing_predicates: Vec<WherePredicate>,
vid_to_region: FxHashMap<RegionVid, Region<'tcx>>
) -> Generics
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,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for AutoTraitFinder<'a, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,