1 unstable release

Uses old Rust 2015

0.1.0 Aug 4, 2016

#3 in #consumed

Download history 992/week @ 2024-05-22 1212/week @ 2024-05-29 1205/week @ 2024-06-05 991/week @ 2024-06-12 867/week @ 2024-06-19 952/week @ 2024-06-26 429/week @ 2024-07-03 821/week @ 2024-07-10 1222/week @ 2024-07-17 1050/week @ 2024-07-24 1011/week @ 2024-07-31 1989/week @ 2024-08-07 1054/week @ 2024-08-14 977/week @ 2024-08-21 1232/week @ 2024-08-28 832/week @ 2024-09-04

4,881 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