moveit::new

Function mov

Source
pub fn mov<P>(ptr: P) -> impl New<Output = P::Target>
where P: AsMove, P::Target: MoveNew,
Expand description

Returns a New that forwards to MoveNew.

let foo = Box::new(42);
moveit! {
  let bar = &move foo;
  let baz = new::mov(bar);
}