Struct rustc_middle::middle::stability::Index [−][src]
pub struct Index<'tcx> {
pub stab_map: FxHashMap<HirId, &'tcx Stability>,
pub const_stab_map: FxHashMap<HirId, &'tcx ConstStability>,
pub depr_map: FxHashMap<HirId, DeprecationEntry>,
pub staged_api: FxHashMap<CrateNum, bool>,
pub active_features: FxHashSet<Symbol>,
}Expand description
A stability index, giving the stability level for items and methods.
Fields
stab_map: FxHashMap<HirId, &'tcx Stability>Expand description
This is mostly a cache, except the stabilities of local items are filled by the annotator.
const_stab_map: FxHashMap<HirId, &'tcx ConstStability>depr_map: FxHashMap<HirId, DeprecationEntry>staged_api: FxHashMap<CrateNum, bool>Expand description
Maps for each crate whether it is part of the staged API.
active_features: FxHashSet<Symbol>Expand description
Features enabled for this crate.
Implementations
impl<'tcx> Index<'tcx>[src]
impl<'tcx> Index<'tcx>[src]pub fn local_stability(&self, id: HirId) -> Option<&'tcx Stability>[src]
pub fn local_const_stability(&self, id: HirId) -> Option<&'tcx ConstStability>[src]
pub fn local_deprecation_entry(&self, id: HirId) -> Option<DeprecationEntry>[src]
Trait Implementations
impl<'tcx, '__ctx> HashStable<StableHashingContext<'__ctx>> for Index<'tcx>[src]
impl<'tcx, '__ctx> HashStable<StableHashingContext<'__ctx>> for Index<'tcx>[src]fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for Index<'tcx>
impl<'tcx> Send for Index<'tcx>
impl<'tcx> Sync for Index<'tcx>
impl<'tcx> Unpin for Index<'tcx>
impl<'tcx> UnwindSafe for Index<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,