[−][src]Struct rustdoc::config::RenderOptions
Configuration options for the HTML page-creation process.
Fields
output: PathBufOutput directory to generate docs into. Defaults to doc.
external_html: ExternalHtmlExternal files to insert into generated pages.
id_map: IdMapA pre-populated IdMap with the default headings and any headings added by Markdown files
processed by external_html.
playground_url: Option<String>If present, playground URL to use in the "Run" button added to code samples.
Be aware: This option can come both from the CLI and from crate attributes!
sort_modules_alphabetically: boolWhether to sort modules alphabetically on a module page instead of using declaration order.
true by default.
themes: Vec<StylePath>List of themes to extend the docs with. Original argument name is included to assist in displaying errors if it fails a theme check.
extension_css: Option<PathBuf>If present, CSS file that contains rules to add to the default CSS.
extern_html_root_urls: BTreeMap<String, String>A map of crate names to the URL to use instead of querying the crate's html_root_url.
default_settings: HashMap<String, String>A map of the default settings (values are as for DOM storage API). Keys should lack the
rustdoc- prefix.
resource_suffix: StringIf present, suffix added to CSS/JavaScript files when referencing them in generated pages.
enable_minification: boolWhether to run the static CSS/JavaScript through a minifier when outputting them. true by
default.
enable_index_page: boolWhether to create an index page in the root of the output directory. If this is true but
enable_index_page is None, generate a static listing of crates instead.
index_page: Option<PathBuf>A file to use as the index page at the root of the output directory. Overrides
enable_index_page to be true if set.
static_root_path: Option<String>An optional path to use as the location of static files. If not set, uses combinations of
../ to reach the documentation root.
markdown_no_toc: boolWhether to generate a table of contents on the output file when reading a standalone Markdown file.
markdown_css: Vec<String>Additional CSS files to link in pages generated from standalone Markdown files.
markdown_playground_url: Option<String>If present, playground URL to use in the "Run" button added to code samples generated from
standalone Markdown files. If not present, playground_url is used.
generate_search_filter: boolIf false, the select element to have search filtering by crates on rendered docs
won't be generated.
document_private: boolDocument items that have lower than pub visibility.
Document items that have doc(hidden).
unstable_features: UnstableFeaturesTrait Implementations
impl Clone for RenderOptions[src]
pub fn clone(&self) -> RenderOptions[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for RenderOptions[src]
Auto Trait Implementations
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnwindSafe for RenderOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,