Struct rustdoc::html::render::SharedContext [] [src]

pub struct SharedContext {
    pub src_root: PathBuf,
    pub layout: Layout,
    pub include_sources: bool,
    pub local_sources: FxHashMap<PathBuf, String>,
    pub passes: FxHashSet<String>,
    pub issue_tracker_base_url: Option<String>,
    pub css_file_extension: Option<PathBuf>,
}
🔬 This is a nightly-only experimental API. (rustdoc)

Fields

🔬 This is a nightly-only experimental API. (rustdoc)

The path to the crate root source minus the file name. Used for simplifying paths to the highlighted source code files.

🔬 This is a nightly-only experimental API. (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).

🔬 This is a nightly-only experimental API. (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.

🔬 This is a nightly-only experimental API. (rustdoc)

The local file sources we've emitted and their respective url-paths.

🔬 This is a nightly-only experimental API. (rustdoc)

All the passes that were run on this crate.

🔬 This is a nightly-only experimental API. (rustdoc)

The base-URL of the issue tracker for when an item has been tagged with an issue number.

🔬 This is a nightly-only experimental API. (rustdoc)

The given user css file which allow to customize the generated documentation theme.