rustdoc::html::format

Function visibility_to_src_with_space

source
pub(crate) fn visibility_to_src_with_space<'a, 'tcx: 'a>(
    visibility: Option<Visibility<DefId>>,
    tcx: TyCtxt<'tcx>,
    item_did: DefId,
    is_doc_hidden: bool,
) -> impl Display + 'a + Captures<'tcx>
Expand description

This function is the same as print_with_space, except that it renders no links. It’s used for macros’ rendered source view, which is syntax highlighted and cannot have any HTML in it.