1 unstable release

Uses old Rust 2015

0.1.0 Aug 4, 2016

#16 in #inner

Download history 834/week @ 2023-11-27 662/week @ 2023-12-04 893/week @ 2023-12-11 729/week @ 2023-12-18 549/week @ 2023-12-25 450/week @ 2024-01-01 1086/week @ 2024-01-08 984/week @ 2024-01-15 1101/week @ 2024-01-22 1074/week @ 2024-01-29 1117/week @ 2024-02-05 1233/week @ 2024-02-12 1282/week @ 2024-02-19 1132/week @ 2024-02-26 1194/week @ 2024-03-04 478/week @ 2024-03-11

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