Struct rustdoc::visit_lib::LibEmbargoVisitor [−][src]
pub(crate) struct LibEmbargoVisitor<'a, 'tcx> {
tcx: TyCtxt<'tcx>,
access_levels: &'a mut AccessLevels<DefId>,
prev_level: Option<AccessLevel>,
visited_mods: FxHashSet<DefId>,
}Expand description
Similar to librustc_privacy::EmbargoVisitor, but also takes
specific rustdoc annotations into account (i.e., doc(hidden))
Fields
tcx: TyCtxt<'tcx>access_levels: &'a mut AccessLevels<DefId>prev_level: Option<AccessLevel>visited_mods: FxHashSet<DefId>Implementations
impl<'a, 'tcx> LibEmbargoVisitor<'a, 'tcx>[src]
impl<'a, 'tcx> LibEmbargoVisitor<'a, 'tcx>[src]pub(crate) fn new(cx: &'a mut DocContext<'tcx>) -> LibEmbargoVisitor<'a, 'tcx>[src]
pub(crate) fn visit_lib(&mut self, cnum: CrateNum)[src]
fn update(
&mut self,
did: DefId,
level: Option<AccessLevel>
) -> Option<AccessLevel>[src]
&mut self,
did: DefId,
level: Option<AccessLevel>
) -> Option<AccessLevel>
pub(crate) fn visit_mod(&mut self, def_id: DefId)[src]
fn visit_item(&mut self, res: Res)[src]
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for LibEmbargoVisitor<'a, 'tcx>
impl<'a, 'tcx> !Send for LibEmbargoVisitor<'a, 'tcx>
impl<'a, 'tcx> !Sync for LibEmbargoVisitor<'a, 'tcx>
impl<'a, 'tcx> Unpin for LibEmbargoVisitor<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for LibEmbargoVisitor<'a, '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> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
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,