bip

Crates.iobip
lib.rsbip
version0.1.0
sourcesrc
created_at2015-02-18 08:41:00.8294
updated_at2015-12-11 23:56:40.231265
descriptionbip (`Box` in place) provides a fully generic in-place `map` for the `Box` type, taking care to be panic-safe and not leak memory.
homepagehttps://github.com/huonw/bip
repositoryhttps://github.com/huonw/bip
max_upload_size
id1421
size5,459
Owners (github:contain-rs:owners)

documentation

http://huonw.github.io/bip/bip/

README

bip

Build Status

bip (Box in place) provides a fully generic in-place map for the Box type, taking care to be panic-safe and not leak memory.

Example:

let x: Box<i32> = Box::new(1);
let y: Box<f32> = bip::map_in_place(y, |x| x as f32 + 1.0);

// y uses the same allocation as x

Documentation

Commit count: 8

cargo fmt