Layout in rustdoc::html::layout - Rust (original) (raw)

pub(crate) struct Layout {
    pub(crate) logo: String,
    pub(crate) favicon: String,
    pub(crate) external_html: ExternalHtml,
    pub(crate) default_settings: FxIndexMap<String, String>,
    pub(crate) krate: String,
    pub(crate) krate_version: String,
    pub(crate) css_file_extension: Option<PathBuf>,
    pub(crate) scrape_examples_extension: bool,
}

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

If true, then scrape-examples.js will be included in the output HTML file

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 256 bytes