Struct test::TestDesc[−][src]

pub struct TestDesc {
    pub name: TestName,
    pub ignore: bool,
    pub should_panic: ShouldPanic,
    pub allow_fail: bool,
    pub compile_fail: bool,
    pub no_run: bool,
    pub test_type: TestType,
}
🔬 This is a nightly-only experimental API. (test)

Fields

name: TestName
🔬 This is a nightly-only experimental API. (test)
ignore: bool
🔬 This is a nightly-only experimental API. (test)
should_panic: ShouldPanic
🔬 This is a nightly-only experimental API. (test)
allow_fail: bool
🔬 This is a nightly-only experimental API. (test)
compile_fail: bool
🔬 This is a nightly-only experimental API. (test)
no_run: bool
🔬 This is a nightly-only experimental API. (test)
test_type: TestType
🔬 This is a nightly-only experimental API. (test)

Implementations

🔬 This is a nightly-only experimental API. (test)
🔬 This is a nightly-only experimental API. (test)

对于被忽略的测试或刚刚运行的测试,返回 None,否则给出测试类型的描述。 描述包括 “应该 panic”、“编译失败” 和 “编译”。

Trait Implementations

返回值的副本。 Read more

从 source 执行复制分配。 Read more

使用给定的格式化程序格式化该值。 Read more

Auto Trait Implementations

Blanket Implementations

获取 self 的 TypeId。 Read more

从拥有的值中一成不变地借用。 Read more

从拥有的值中借用。 Read more

执行转换。

执行转换。

获得所有权后的结果类型。

通常通过克隆从借用数据中创建拥有的数据。 Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

使用借来的数据来替换拥有的数据,通常是通过克隆。 Read more

发生转换错误时返回的类型。

执行转换。

发生转换错误时返回的类型。

执行转换。