Struct rustdoc::test::CollectorUnstable
[-] [+]
[src]
pub struct Collector { pub tests: Vec<TestDescAndFn>, // some fields omitted }
Fields
tests |
pub struct Collector { pub tests: Vec<TestDescAndFn>, // some fields omitted }
tests |
impl Collector
fn new(cratename: String, libs: SearchPaths, externs: Externs, use_headers: bool, opts: TestOptions) -> Collector
fn add_test(&mut self, test: String, should_panic: bool, no_run: bool, should_ignore: bool, as_test_harness: bool)
fn register_header(&mut self, name: &str, level: u32)
impl DocFolder for Collector
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).