1 unstable release

0.1.0 Aug 4, 2016

#31 in Rust patterns

Download history 8482/week @ 2018-08-12 9385/week @ 2018-08-19 9061/week @ 2018-08-26 9694/week @ 2018-09-02 9639/week @ 2018-09-09 9869/week @ 2018-09-16 10301/week @ 2018-09-23 8755/week @ 2018-09-30 9658/week @ 2018-10-07 8667/week @ 2018-10-14 8602/week @ 2018-10-21 8384/week @ 2018-10-28 7793/week @ 2018-11-04

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