docs

v0.1.0 문서를 보고 있습니다. 이 버전은 더 이상 지원하지 않습니다. 최신 릴리스: v0.1.3 →

core::hint

API 참조는 영어로만 있습니다. 표준 라이브러리 소스의 영어 문서 주석에서 만듭니다.

hints the optimizer honors.

Functions

black_boxSource

pub fn black_box<T>(x: T) -> T

An identity the optimizer cannot see through. Returns x unchanged, but will not fold away the computation that produced it, nor assume the result: x is routed through its own address with a volatile load. Benchmarks wrap the inputs and the result of a timed region with it so the work is actually performed.