Struct rustc_middle::middle::privacy::AccessLevels [−][src]
pub struct AccessLevels<Id = HirId> { pub map: FxHashMap<Id, AccessLevel>, }
Expand description
Holds a map of accessibility levels for reachable HIR nodes.
Fields
map: FxHashMap<Id, AccessLevel>Implementations
impl<Id: Hash + Eq> AccessLevels<Id>[src]
impl<Id: Hash + Eq> AccessLevels<Id>[src]pub fn is_reachable(&self, id: Id) -> bool[src]
pub fn is_reachable(&self, id: Id) -> bool[src]See AccessLevel::Reachable.
pub fn is_exported(&self, id: Id) -> bool[src]
pub fn is_exported(&self, id: Id) -> bool[src]See AccessLevel::Exported.
Trait Implementations
impl<'tcx> ArenaAllocatable<'tcx, AccessLevels<HirId>> for AccessLevels[src]
impl<'tcx> ArenaAllocatable<'tcx, AccessLevels<HirId>> for AccessLevels[src]fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self[src]
fn allocate_from_iter<'a>(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = Self>
) -> &'a mut [Self]ⓘ[src]
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = Self>
) -> &'a mut [Self]ⓘ
impl<Id: Clone> Clone for AccessLevels<Id>[src]
impl<Id: Clone> Clone for AccessLevels<Id>[src]fn clone(&self) -> AccessLevels<Id>[src]
fn clone(&self) -> AccessLevels<Id>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<Id: Hash + Eq> Default for AccessLevels<Id>[src]
impl<Id: Hash + Eq> Default for AccessLevels<Id>[src]impl<'a> HashStable<StableHashingContext<'a>> for AccessLevels[src]
impl<'a> HashStable<StableHashingContext<'a>> for AccessLevels[src]fn hash_stable(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher
)[src]
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher
)
Auto Trait Implementations
impl<Id> RefUnwindSafe for AccessLevels<Id> where
Id: RefUnwindSafe,
Id: RefUnwindSafe,
impl<Id> Send for AccessLevels<Id> where
Id: Send,
Id: Send,
impl<Id> Sync for AccessLevels<Id> where
Id: Sync,
Id: Sync,
impl<Id> Unpin for AccessLevels<Id> where
Id: Unpin,
Id: Unpin,
impl<Id> UnwindSafe for AccessLevels<Id> where
Id: UnwindSafe,
Id: UnwindSafe,
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> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
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,