Struct rustdoc::html::render::SharedContext
[−]
[src]
pub struct SharedContext { pub src_root: PathBuf, pub layout: Layout, pub include_sources: bool, pub local_sources: HashMap<PathBuf, String>, pub passes: HashSet<String>, pub issue_tracker_base_url: Option<String>, pub css_file_extension: Option<PathBuf>, }
Unstable (
rustdoc
)Fields
src_root: PathBuf
Unstable (
rustdoc
)The path to the crate root source minus the file name. Used for simplifying paths to the highlighted source code files.
layout: Layout
Unstable (
rustdoc
)This describes the layout of each page, and is not modified after creation of the context (contains info like the favicon and added html).
include_sources: bool
Unstable (
rustdoc
)This flag indicates whether [src] links should be generated or not. If
the source files are present in the html rendering, then this will be
true
.
local_sources: HashMap<PathBuf, String>
Unstable (
rustdoc
)The local file sources we've emitted and their respective url-paths.
passes: HashSet<String>
Unstable (
rustdoc
)All the passes that were run on this crate.
issue_tracker_base_url: Option<String>
Unstable (
rustdoc
)The base-URL of the issue tracker for when an item has been tagged with an issue number.
css_file_extension: Option<PathBuf>
Unstable (
rustdoc
)The given user css file which allow to customize the generated documentation theme.