1 unstable release

0.1.0 Aug 4, 2016

#36 in Rust patterns

Download history 7770/week @ 2018-10-26 8119/week @ 2018-11-02 9977/week @ 2018-11-09 10347/week @ 2018-11-16 7914/week @ 2018-11-23 9144/week @ 2018-11-30 9167/week @ 2018-12-07 8815/week @ 2018-12-14 9573/week @ 2018-12-21 5040/week @ 2018-12-28 6140/week @ 2019-01-04 7773/week @ 2019-01-11 5867/week @ 2019-01-18

41,952 downloads per month
Used in 78 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