[go: up one dir, main page]

Function black_box

Source
pub fn black_box<T>(dummy: T) -> T
👎Deprecated: use std::hint::black_box() instead
Expand description

A function that is opaque to the optimizer, used to prevent the compiler from optimizing away computations in a benchmark.