enter_span in rustdoc::html::highlight - Rust (original) (raw)

rustdoc::html::highlight

Function enter_span

Source

fn enter_span(
    out: &mut impl Write,
    klass: Class,
    href_context: &Option<HrefContext<'_, '_>>,
) -> &'static str

Expand description

Called when we start processing a span of text that should be highlighted. The Class argument specifies how it should be highlighted.