pin_box

Macro pin_box 

Source
macro_rules! pin_box {
    ($val:expr) => { ... };
}
Expand description

Macro for creating a Pin<Box<T>> from a value

ยงExample

use hurry::pin_box;
let x = pin_box!(5);
assert_eq!(*x, 5);