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
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>
fn handle_lifetimes<'cx>(
regions: &RegionConstraintData<'cx>,
names_map: &FxHashMap<Symbol, Lifetime>
) -> Vec<WherePredicate>
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>
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
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes