GlobalTestOptions in rustdoc::doctest - Rust (original) (raw)

Struct GlobalTestOptions

Source

pub(crate) struct GlobalTestOptions {
    pub(crate) crate_name: String,
    pub(crate) no_crate_inject: bool,
    pub(crate) insert_indent_space: bool,
    pub(crate) attrs: Vec<String>,
    pub(crate) args_file: PathBuf,
}

Expand description

Options that apply to all doctests in a crate or Markdown file (for rustdoc foo.md).

Name of the crate (for regular rustdoc) or Markdown file (for rustdoc foo.md).

Whether to disable the default extern crate my_crate; when creating doctests.

Whether inserting extra indent spaces in code block, default is false, only true for generating code link of Rust playground

Additional crate-level attributes to add to doctests.

Path to file containing arguments for the invocation of rustc.

§

§

§

§

§

§

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: 80 bytes