[−][src]Struct rustdoc::clean::auto_trait::AutoTraitFinder
Fields
cx: &'a DocContext<'tcx>f: AutoTraitFinder<'tcx>Implementations
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx>[src]
pub(crate) fn new(cx: &'a DocContext<'tcx>) -> Self[src]
pub(crate) fn get_auto_trait_impls(
&self,
ty: Ty<'tcx>,
param_env_def_id: DefId
) -> Vec<Item>[src]
&self,
ty: Ty<'tcx>,
param_env_def_id: DefId
) -> Vec<Item>
pub(in clean::auto_trait) fn get_lifetime(
&self,
region: Region<'_>,
names_map: &FxHashMap<String, Lifetime>
) -> Lifetime[src]
&self,
region: Region<'_>,
names_map: &FxHashMap<String, Lifetime>
) -> Lifetime
pub(in clean::auto_trait) fn region_name(
&self,
region: Region<'_>
) -> Option<String>[src]
&self,
region: Region<'_>
) -> Option<String>
pub(in clean::auto_trait) fn handle_lifetimes<'cx>(
&self,
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<String, Lifetime>
) -> Vec<WherePredicate>[src]
&self,
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<String, Lifetime>
) -> Vec<WherePredicate>
pub(in clean::auto_trait) fn extract_for_generics(
&self,
tcx: TyCtxt<'tcx>,
pred: Predicate<'tcx>
) -> FxHashSet<GenericParamDef>[src]
&self,
tcx: TyCtxt<'tcx>,
pred: Predicate<'tcx>
) -> FxHashSet<GenericParamDef>
pub(in clean::auto_trait) 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>
pub(in clean::auto_trait) fn param_env_to_generics(
&self,
tcx: TyCtxt<'tcx>,
param_env_def_id: DefId,
param_env: ParamEnv<'tcx>,
existing_predicates: Vec<WherePredicate>,
vid_to_region: FxHashMap<RegionVid, Region<'tcx>>
) -> Generics[src]
&self,
tcx: TyCtxt<'tcx>,
param_env_def_id: DefId,
param_env: ParamEnv<'tcx>,
existing_predicates: Vec<WherePredicate>,
vid_to_region: FxHashMap<RegionVid, Region<'tcx>>
) -> Generics
pub(in clean::auto_trait) fn sort_where_predicates(
&self,
predicates: &mut Vec<WherePredicate>
)[src]
&self,
predicates: &mut Vec<WherePredicate>
)
pub(in clean::auto_trait) fn sort_where_bounds(
&self,
bounds: &mut Vec<GenericBound>
)[src]
&self,
bounds: &mut Vec<GenericBound>
)
pub(in clean::auto_trait) fn unstable_debug_sort<T: Debug>(
&self,
vec: &mut Vec<T>
)[src]
&self,
vec: &mut Vec<T>
)
pub(in clean::auto_trait) fn is_fn_ty(
&self,
tcx: TyCtxt<'_>,
ty: &Type
) -> bool[src]
&self,
tcx: TyCtxt<'_>,
ty: &Type
) -> bool
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, 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>,