[−][src]Macro new_flattened::new_flattened
Macro to flatten nested calls of new
s.
Examples
use new_flattened::new_flattened; assert_eq!( Box::new(Box::new(Box::new(42))), new_flattened!(42, Box, Box, Box), )
Macro to flatten nested calls of new
s.
use new_flattened::new_flattened; assert_eq!( Box::new(Box::new(Box::new(42))), new_flattened!(42, Box, Box, Box), )