test::bench

Function black_box

source
pub fn black_box<T>(dummy: T) -> T
🔬This is a nightly-only experimental API. (test)
Expand description

An identity function that hints to the compiler to be maximally pessimistic about what black_box could do.

See std::hint::black_box for details.