1 unstable release

Uses old Rust 2015

0.1.0 Aug 4, 2016

#16 in #inner

Download history 1010/week @ 2024-01-14 1136/week @ 2024-01-21 1069/week @ 2024-01-28 1030/week @ 2024-02-04 1180/week @ 2024-02-11 1350/week @ 2024-02-18 1138/week @ 2024-02-25 1175/week @ 2024-03-03 1245/week @ 2024-03-10 1475/week @ 2024-03-17 1296/week @ 2024-03-24 1998/week @ 2024-03-31 1107/week @ 2024-04-07 1205/week @ 2024-04-14 1216/week @ 2024-04-21 1566/week @ 2024-04-28

5,251 downloads per month
Used in 66 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