Struct rustdoc::clean::auto_trait::AutoTraitFinder [−][src]
pub struct AutoTraitFinder<'a, 'tcx: 'a, 'rcx: 'a> {
pub cx: &'a DocContext<'a, 'tcx, 'rcx>,
pub f: AutoTraitFinder<'a, 'tcx>,
}Fields
cx: &'a DocContext<'a, 'tcx, 'rcx>
f: AutoTraitFinder<'a, 'tcx>
Methods
impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx>[src]
impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx>pub fn new(cx: &'a DocContext<'a, 'tcx, 'rcx>) -> Self[src]
pub fn new(cx: &'a DocContext<'a, 'tcx, 'rcx>) -> Selfpub fn get_with_def_id(&self, def_id: DefId) -> Vec<Item>[src]
pub fn get_with_def_id(&self, def_id: DefId) -> Vec<Item>pub fn get_with_node_id(&self, id: NodeId, name: String) -> Vec<Item>[src]
pub fn get_with_node_id(&self, id: NodeId, name: String) -> Vec<Item>fn get_real_ty<F>(
&self,
def_id: DefId,
def_ctor: &F,
real_name: &Option<Ident>,
generics: &Generics
) -> Ty where
F: Fn(DefId) -> Def, [src]
fn get_real_ty<F>(
&self,
def_id: DefId,
def_ctor: &F,
real_name: &Option<Ident>,
generics: &Generics
) -> Ty where
F: Fn(DefId) -> Def, pub fn get_auto_trait_impls<F>(
&self,
def_id: DefId,
def_ctor: &F,
name: Option<String>
) -> Vec<Item> where
F: Fn(DefId) -> Def, [src]
pub fn get_auto_trait_impls<F>(
&self,
def_id: DefId,
def_ctor: &F,
name: Option<String>
) -> Vec<Item> where
F: Fn(DefId) -> Def, fn get_auto_trait_impl_for<F>(
&self,
def_id: DefId,
name: Option<String>,
generics: Generics,
def_ctor: &F,
trait_def_id: DefId
) -> Option<Item> where
F: Fn(DefId) -> Def, [src]
fn get_auto_trait_impl_for<F>(
&self,
def_id: DefId,
name: Option<String>,
generics: Generics,
def_ctor: &F,
trait_def_id: DefId
) -> Option<Item> where
F: Fn(DefId) -> Def, fn generics_to_path_params(&self, generics: Generics) -> GenericArgs[src]
fn generics_to_path_params(&self, generics: Generics) -> GenericArgsfn ty_param_to_ty(&self, param: GenericParamDef) -> Ty[src]
fn ty_param_to_ty(&self, param: GenericParamDef) -> Tyfn find_auto_trait_generics(
&self,
did: DefId,
trait_did: DefId,
generics: &Generics
) -> AutoTraitResult[src]
fn find_auto_trait_generics(
&self,
did: DefId,
trait_did: DefId,
generics: &Generics
) -> AutoTraitResultfn get_lifetime(
&self,
region: Region,
names_map: &FxHashMap<String, Lifetime>
) -> Lifetime[src]
fn get_lifetime(
&self,
region: Region,
names_map: &FxHashMap<String, Lifetime>
) -> Lifetimefn region_name(&self, region: Region) -> Option<String>[src]
fn region_name(&self, region: Region) -> Option<String>fn handle_lifetimes<'cx>(
&self,
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<String, Lifetime>
) -> Vec<WherePredicate>[src]
fn handle_lifetimes<'cx>(
&self,
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<String, Lifetime>
) -> Vec<WherePredicate>fn extract_for_generics<'b, 'c, 'd>(
&self,
tcx: TyCtxt<'b, 'c, 'd>,
pred: Predicate<'d>
) -> FxHashSet<GenericParamDef>[src]
fn extract_for_generics<'b, 'c, 'd>(
&self,
tcx: TyCtxt<'b, 'c, 'd>,
pred: Predicate<'d>
) -> FxHashSet<GenericParamDef>fn make_final_bounds<'b, 'c, 'cx>(
&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 make_final_bounds<'b, 'c, 'cx>(
&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<'b, 'c, 'cx>(
&self,
tcx: TyCtxt<'b, 'c, 'cx>,
did: DefId,
param_env: ParamEnv<'cx>,
type_generics: Generics,
existing_predicates: Vec<WherePredicate>,
vid_to_region: FxHashMap<RegionVid, Region<'cx>>
) -> Generics[src]
fn param_env_to_generics<'b, 'c, 'cx>(
&self,
tcx: TyCtxt<'b, 'c, 'cx>,
did: DefId,
param_env: ParamEnv<'cx>,
type_generics: Generics,
existing_predicates: Vec<WherePredicate>,
vid_to_region: FxHashMap<RegionVid, Region<'cx>>
) -> Genericsfn sort_where_predicates(&self, predicates: &mut Vec<WherePredicate>)[src]
fn sort_where_predicates(&self, predicates: &mut Vec<WherePredicate>)fn sort_where_bounds(&self, bounds: &mut Vec<GenericBound>)[src]
fn sort_where_bounds(&self, bounds: &mut Vec<GenericBound>)fn unstable_debug_sort<T: Debug>(&self, vec: &mut Vec<T>)[src]
fn unstable_debug_sort<T: Debug>(&self, vec: &mut Vec<T>)fn is_fn_ty(&self, tcx: &TyCtxt, ty: &Type) -> bool[src]
fn is_fn_ty(&self, tcx: &TyCtxt, ty: &Type) -> boolfn next_def_id(&self, crate_num: CrateNum) -> DefId[src]
fn next_def_id(&self, crate_num: CrateNum) -> DefIdAuto Trait Implementations
impl<'a, 'tcx, 'rcx> !Send for AutoTraitFinder<'a, 'tcx, 'rcx>
impl<'a, 'tcx, 'rcx> !Send for AutoTraitFinder<'a, 'tcx, 'rcx>impl<'a, 'tcx, 'rcx> !Sync for AutoTraitFinder<'a, 'tcx, 'rcx>
impl<'a, 'tcx, 'rcx> !Sync for AutoTraitFinder<'a, 'tcx, 'rcx>