Struct rustdoc::doctest::TestOptions [−][src]
pub(crate) struct TestOptions {
pub(crate) no_crate_inject: bool,
pub(crate) display_doctest_warnings: bool,
pub(crate) attrs: Vec<String>,
}
Fields
no_crate_inject: bool
Whether to disable the default extern crate my_crate;
when creating doctests.
display_doctest_warnings: bool
Whether to emit compilation warnings when compiling doctests. Setting this will suppress
the default #![allow(unused)]
.
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 TestOptions
impl Send for TestOptions
impl Sync for TestOptions
impl Unpin for TestOptions
impl UnwindSafe for TestOptions
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