Struct rustdoc::visit_ast::RustdocVisitor [−][src]
pub(crate) struct RustdocVisitor<'a, 'tcx> {
cx: &'a mut DocContext<'tcx>,
view_item_stack: FxHashSet<HirId>,
inlining: bool,
inside_public_path: bool,
exact_paths: FxHashMap<DefId, Vec<String>>,
}Fields
cx: &'a mut DocContext<'tcx>view_item_stack: FxHashSet<HirId>inlining: boolinside_public_path: boolExpand description
Are the current module and all of its parents public?
exact_paths: FxHashMap<DefId, Vec<String>>Implementations
impl<'a, 'tcx> RustdocVisitor<'a, 'tcx>[src]
impl<'a, 'tcx> RustdocVisitor<'a, 'tcx>[src]pub(crate) fn new(cx: &'a mut DocContext<'tcx>) -> RustdocVisitor<'a, 'tcx>[src]
fn store_path(&mut self, did: DefId)[src]
pub(crate) fn visit(self, krate: &'tcx Crate<'_>) -> Module<'tcx>[src]
fn visit_mod_contents(
&mut self,
vis: &Visibility<'_>,
id: HirId,
m: &'tcx Mod<'tcx>,
name: Symbol
) -> Module<'tcx>[src]
&mut self,
vis: &Visibility<'_>,
id: HirId,
m: &'tcx Mod<'tcx>,
name: Symbol
) -> Module<'tcx>
fn maybe_inline_local(
&mut self,
id: HirId,
res: Res,
renamed: Option<Symbol>,
glob: bool,
om: &mut Module<'tcx>,
please_inline: bool
) -> bool[src]
fn maybe_inline_local(
&mut self,
id: HirId,
res: Res,
renamed: Option<Symbol>,
glob: bool,
om: &mut Module<'tcx>,
please_inline: bool
) -> bool[src]Tries to resolve the target of a pub use statement and inlines the
target if it is defined locally and would not be documented otherwise,
or when it is specifically requested with please_inline.
(the latter is the case when the import is marked doc(inline))
Cross-crate inlining occurs later on during crate cleaning and follows different rules.
Returns true if the target has been inlined.
fn visit_item(
&mut self,
item: &'tcx Item<'_>,
renamed: Option<Symbol>,
om: &mut Module<'tcx>
)[src]
&mut self,
item: &'tcx Item<'_>,
renamed: Option<Symbol>,
om: &mut Module<'tcx>
)
fn visit_foreign_item(
&mut self,
item: &'tcx ForeignItem<'_>,
renamed: Option<Symbol>,
om: &mut Module<'tcx>
)[src]
&mut self,
item: &'tcx ForeignItem<'_>,
renamed: Option<Symbol>,
om: &mut Module<'tcx>
)
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for RustdocVisitor<'a, 'tcx>
impl<'a, 'tcx> !Send for RustdocVisitor<'a, 'tcx>
impl<'a, 'tcx> !Sync for RustdocVisitor<'a, 'tcx>
impl<'a, 'tcx> Unpin for RustdocVisitor<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for RustdocVisitor<'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,