macro_rules! boxed { ($e:expr) => { ... }; ($e:expr,) => { ... }; ($($e:expr),+ $(,)?) => { ... }; }
Create a new Box.
Box
It is also able to create tuples if given more than one parameter.
use sugars::boxed; assert_eq!(Box::new(10), boxed!(10)); // Tuple example let (box_a, box_b) = boxed!(10, "my_str"); assert_eq!(Box::new(10), box_a); assert_eq!(Box::new("my_str"), box_b);