print_src in rustdoc::html::sources - Rust
Description: Wrapper struct to render the source code of a file. This will do things like adding line numbers to the left-hand side.

Skip to main content

## print_src

# Function print_src

Source

    pub(crate) fn print_src(
        writer: impl Write,
        s: &str,
        file_span: Span,
        context: &Context<'_>,
        root_path: &str,
        decoration_info: &DecorationInfo,
        source_context: &SourceContext<'_>,
    ) -> Result

Expand description

Wrapper struct to render the source code of a file. This will do things like adding line numbers to the left-hand side.