1 unstable release

0.1.0 Aug 4, 2016
Download history 5770/week @ 2018-12-20 5510/week @ 2018-12-27 7773/week @ 2019-01-03 7098/week @ 2019-01-10 6384/week @ 2019-01-17 6507/week @ 2019-01-24 5445/week @ 2019-01-31 5939/week @ 2019-02-07 4745/week @ 2019-02-14 5097/week @ 2019-02-21 4965/week @ 2019-02-28 5814/week @ 2019-03-07 5569/week @ 2019-03-14 4750/week @ 2019-03-21 5630/week @ 2019-03-28

41,952 downloads per month
Used in 89 crates (2 directly)

MIT/Apache

6KB

Take - A simple container utility for Rust

Take is a Cell allowing the inner value to be consumed without a mutable reference.

In order to maintain safety, it is not possible to get access to the inner value without consuming it.

Usage

First, add this to your Cargo.toml:

[dependencies]
take = "0.1.0"

Next, add this to your crate:

extern crate take;

And then, use Take!

License

Take is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.


lib.rs:

Cell allowing the inner value to be consumed without a mutable reference.

In order to maintain safety, it is not possible to get a reference to the inner value.

No runtime deps