Struct rustc::middle::cstore::DummyCrateStore
[−]
[src]
pub struct DummyCrateStore;
Unstable (
rustc_private
)A dummy crate store that does not support any non-local crates, for test purposes.
Trait Implementations
impl<'tcx> CrateStore<'tcx> for DummyCrateStore
[src]
fn stability(&self, def: DefId) -> Option<Stability>
fn deprecation(&self, def: DefId) -> Option<Deprecation>
fn visibility(&self, def: DefId) -> Visibility
fn closure_kind(&self, def_id: DefId) -> ClosureKind
fn closure_ty<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> ClosureTy<'tcx>
fn item_variances(&self, def: DefId) -> ItemVariances
fn repr_attrs(&self, def: DefId) -> Vec<ReprAttr>
fn item_type<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> TypeScheme<'tcx>
fn visible_parent_map<'a>(&'a self) -> RefMut<'a, DefIdMap<DefId>>
fn item_name(&self, def: DefId) -> Name
fn item_predicates<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> GenericPredicates<'tcx>
fn item_super_predicates<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> GenericPredicates<'tcx>
fn item_attrs(&self, def_id: DefId) -> Vec<Attribute>
fn item_symbol(&self, def: DefId) -> String
fn trait_def<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> TraitDef<'tcx>
fn adt_def<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> AdtDefMaster<'tcx>
fn method_arg_names(&self, did: DefId) -> Vec<String>
fn inherent_implementations_for_type(&self, def_id: DefId) -> Vec<DefId>
fn implementations_of_trait(&self, def_id: DefId) -> Vec<DefId>
fn provided_trait_methods<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> Vec<Rc<Method<'tcx>>>
fn trait_item_def_ids(&self, def: DefId) -> Vec<ImplOrTraitItemId>
fn def_index_for_def_key(&self, cnum: CrateNum, def: DefKey) -> Option<DefIndex>
fn impl_items(&self, impl_def_id: DefId) -> Vec<ImplOrTraitItemId>
fn impl_trait_ref<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> Option<TraitRef<'tcx>>
fn impl_polarity(&self, def: DefId) -> Option<ImplPolarity>
fn custom_coerce_unsized_kind(&self, def: DefId) -> Option<CustomCoerceUnsized>
fn associated_consts<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> Vec<Rc<AssociatedConst<'tcx>>>
fn impl_parent(&self, def: DefId) -> Option<DefId>
fn trait_of_item<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> Option<DefId>
fn impl_or_trait_item<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, def: DefId) -> Option<ImplOrTraitItem<'tcx>>
fn is_const_fn(&self, did: DefId) -> bool
fn is_defaulted_trait(&self, did: DefId) -> bool
fn is_impl(&self, did: DefId) -> bool
fn is_default_impl(&self, impl_did: DefId) -> bool
fn is_extern_item<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>, did: DefId) -> bool
fn is_static_method(&self, did: DefId) -> bool
fn is_statically_included_foreign_item(&self, id: NodeId) -> bool
fn is_typedef(&self, did: DefId) -> bool
fn dylib_dependency_formats(&self, cnum: CrateNum) -> Vec<(CrateNum, LinkagePreference)>
fn lang_items(&self, cnum: CrateNum) -> Vec<(DefIndex, usize)>
fn missing_lang_items(&self, cnum: CrateNum) -> Vec<LangItem>
fn is_staged_api(&self, cnum: CrateNum) -> bool
fn is_explicitly_linked(&self, cnum: CrateNum) -> bool
fn is_allocator(&self, cnum: CrateNum) -> bool
fn is_panic_runtime(&self, cnum: CrateNum) -> bool
fn panic_strategy(&self, cnum: CrateNum) -> PanicStrategy
fn extern_crate(&self, cnum: CrateNum) -> Option<ExternCrate>
fn crate_attrs(&self, cnum: CrateNum) -> Vec<Attribute>
fn crate_name(&self, cnum: CrateNum) -> InternedString
The name of the crate as it is referred to in source code of the current crate. Read more
fn original_crate_name(&self, cnum: CrateNum) -> InternedString
The name of the crate as it is stored in the crate's metadata.