Struct test::bench::Bencher[][src]

pub struct Bencher {
    pub bytes: u64,
    // some fields omitted
}
🔬 This is a nightly-only experimental API. (test)
Expand description

基准测试管理。

这被馈入标有 #[bench] 的函数中,以便在通过调用 iter 重复运行一段代码之前进行设置和拆除。

Fields

bytes: u64
🔬 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)

Trait Implementations

返回值的副本。 Read more

source 执行复制分配。 Read more

Auto Trait Implementations

Blanket Implementations

获取 selfTypeIdRead more

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

从拥有的值中借用。 Read more

执行转换。

执行转换。

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

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

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

recently added

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

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

执行转换。

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

执行转换。