Hints to compiler that affects how code should be emitted or optimized.
unreachable_unchecked⚠ |
Informs the compiler that this point in the code is not reachable, enabling further optimizations. |
black_box |
Experimental A function that is opaque to the optimizer, to allow benchmarks to pretend to use outputs to assist in avoiding dead-code elimination. |
spin_loop |
Experimental Signals the processor that it is entering a busy-wait spin-loop. |
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/hint/index.html