14 releases (5 stable)

Uses old Rust 2015

1.3.0 Aug 12, 2020
1.2.1 Dec 4, 2018
1.2.0 Sep 19, 2018
1.0.0 Jun 6, 2018
0.2.0 Mar 28, 2016

#146 in Rust patterns

Download history 771535/week @ 2024-07-31 839893/week @ 2024-08-07 781013/week @ 2024-08-14 832886/week @ 2024-08-21 791340/week @ 2024-08-28 868077/week @ 2024-09-04 832921/week @ 2024-09-11 944119/week @ 2024-09-18 1014290/week @ 2024-09-25 1377294/week @ 2024-10-02 1425363/week @ 2024-10-09 1374609/week @ 2024-10-16 925923/week @ 2024-10-23 851295/week @ 2024-10-30 845552/week @ 2024-11-06 730504/week @ 2024-11-13

3,538,057 downloads per month
Used in 5,488 crates (31 directly)

MIT/Apache

29KB
490 lines

lazycell

Linux travis-badge
cargo-downloads-badge api-docs-badge crates-io license-badge coveralls-badge

Rust library providing a lazily filled Cell.

Table of Contents

Usage

Add the following to your Cargo.toml:

[dependencies]
lazycell = "1.3"

And in your lib.rs or main.rs:

extern crate lazycell;

See the API docs for information on using the crate in your library.

Contributing

Contributions are always welcome! If you have an idea for something to add (code, documentation, tests, examples, etc.) feel free to give it a shot.

Please read CONTRIBUTING.md before you start contributing.

Credits

The LazyCell library is based originally on work by The Rust Project Developers for the project crates.io.

The list of contributors to this project can be found at CONTRIBUTORS.md.

License

LazyCell is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, and LICENSE-MIT for details.

Dependencies

~200KB