map_box 0.2.2

Map the value in a Box, re-using the allocation when possible.
Documentation
1
2
3
4
5
6
use map_box::Map;

pub fn main() {
    let b = Box::new(42u64);
    let _b = b.map_box(|v| v as i64);
}