2 releases

0.1.1 Jan 26, 2021
0.1.0 Jan 26, 2021

#1983 in Rust patterns

MIT/Apache

3KB

new_flattened

Cargo

This crates provides new_flattened! macro which enables you to write

new_flattened!(42, Box, Box, Box)

instead of

Box::new(Box::new(Box::new(42)))

lib.rs:

This crates provides new_flattened! macro which enables you to write

new_flattened!(42, Box, Box, Box)

instead of

Box::new(Box::new(Box::new(42)))

No runtime deps