Struct rustdoc::doctest::GlobalTestOptions [−][src]
pub(crate) struct GlobalTestOptions {
pub(crate) no_crate_inject: bool,
pub(crate) attrs: Vec<String>,
}Expand description
Options that apply to all doctests in a crate or Markdown file (for rustdoc foo.md).
Fields
no_crate_inject: boolWhether to disable the default extern crate my_crate; when creating doctests.
attrs: Vec<String>Additional crate-level attributes to add to doctests.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for GlobalTestOptions
impl Send for GlobalTestOptions
impl Sync for GlobalTestOptions
impl Unpin for GlobalTestOptions
impl UnwindSafe for GlobalTestOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Layout
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: 32 bytes
