Struct rustdoc::test::CollectorUnstable [-] [+] [src]

pub struct Collector {
    pub tests: Vec<TestDescAndFn>,
    // some fields omitted
}

Fields

tests

Methods

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)

Trait Implementations

impl DocFolder for Collector

fn fold_item(&mut self, item: Item) -> Option<Item>

fn fold_item_recur(&mut self, item: Item) -> Option<Item>

fn fold_mod(&mut self, m: Module) -> Module

fn fold_crate(&mut self, c: Crate) -> Crate