[][src]Macro new_flattened::new_flattened

macro_rules! new_flattened {
    ($value:expr, $container:ident) => { ... };
    ($value:expr, $container:ident, $($containers:ident),+) => { ... };
}

Macro to flatten nested calls of news.

Examples

use new_flattened::new_flattened;
assert_eq!(
    Box::new(Box::new(Box::new(42))),
    new_flattened!(42, Box, Box, Box),
)