1 unstable release

Uses old Rust 2015

0.1.0 Aug 4, 2016

#25 in #inner

Download history 708/week @ 2024-12-01 714/week @ 2024-12-08 699/week @ 2024-12-15 373/week @ 2024-12-22 211/week @ 2024-12-29 597/week @ 2025-01-05 1286/week @ 2025-01-12 758/week @ 2025-01-19 408/week @ 2025-01-26 5000/week @ 2025-02-02 2108/week @ 2025-02-09 506/week @ 2025-02-16 769/week @ 2025-02-23 460/week @ 2025-03-02 1116/week @ 2025-03-09 1109/week @ 2025-03-16

3,585 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