benri 0.1.12

Convenient macros wrapping the standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//---------------------------------------------------------------------------------------------------- Hint
#[macro_export]
/// Calls [`std::hint::spin_loop()`]
macro_rules! spin {
	() => {
		::std::hint::spin_loop()
	}
}
pub use spin;

#[macro_export]
/// Calls [`std::hint::black_box()`] on the given function
macro_rules! black_box {
	($function:$tt) => {
		::std::hint::black_box($function)
	}
}
pub use black_box;