Function rustdoc::html::sources::print_src [−][src]
fn print_src(
buf: &mut Buffer,
s: &str,
edition: Edition,
file_span: Span,
context: &Context<'_>,
root_path: &str
)
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.