1 unstable release

Uses old Rust 2015

0.1.0 Aug 4, 2016

#2 in #consumed

Download history 1135/week @ 2024-07-25 849/week @ 2024-08-01 1998/week @ 2024-08-08 1087/week @ 2024-08-15 1043/week @ 2024-08-22 1252/week @ 2024-08-29 927/week @ 2024-09-05 888/week @ 2024-09-12 1095/week @ 2024-09-19 1212/week @ 2024-09-26 676/week @ 2024-10-03 429/week @ 2024-10-10 543/week @ 2024-10-17 627/week @ 2024-10-24 622/week @ 2024-10-31 349/week @ 2024-11-07

2,292 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