Home
last modified time | relevance | path

Searched refs:lazycell (Results 1 – 16 of 16) sorted by relevance

/third_party/rust/crates/lazycell/src/
Dlib.rs355 let lazycell: LazyCell<usize> = LazyCell::new(); in test_borrow_from_empty() localVariable
357 let value = lazycell.borrow(); in test_borrow_from_empty()
360 let value = lazycell.get(); in test_borrow_from_empty()
366 let lazycell = LazyCell::new(); in test_fill_and_borrow() localVariable
368 assert!(!lazycell.filled()); in test_fill_and_borrow()
369 lazycell.fill(1).unwrap(); in test_fill_and_borrow()
370 assert!(lazycell.filled()); in test_fill_and_borrow()
372 let value = lazycell.borrow(); in test_fill_and_borrow()
375 let value = lazycell.get(); in test_fill_and_borrow()
381 let mut lazycell = LazyCell::new(); in test_borrow_mut() localVariable
[all …]
/third_party/rust/crates/lazycell/
DCHANGELOG.md7 * Implement Clone for LazyCell and AtomicLazyCell ([30fe4a8f](https://github.com/indiv0/lazycell/…
17 * add `LazyCell::replace` for infallible access ([a63ffb90](https://github.com/indiv0/lazycell/co…
27 * add note regarding LazyCell::borrow_mut ([9d634d1f](https://github.com/indiv0/lazycell/commit/9…
28 …ps://github.com/indiv0/lazycell/commit/b80780294611e92efddcdd33a701b3049ab5c5eb), closes [#78](htt…
32 …ps://github.com/indiv0/lazycell/commit/31aff0dacf824841c5f38ef4acf0aa71ec4c36eb), closes [#87](htt…
33lazycell/commit/fdc6d268f0e9a6668768302f45fe2bb4aa9a7c34), closes [#79](https://github.com/indiv0/
43 * Add #![no_std] ([e59f6b55](https://github.com/indiv0/lazycell/commit/e59f6b5531e310d3df26b0eb40…
53 * fix soundness hole in borrow_with ([d1f46bef](https://github.com/indiv0/lazycell/commit/d1f46be…
57 * add Default derives ([71bc5088](https://github.com/indiv0/lazycell/commit/71bc50880cd8e20002038…
58 * add LazyCell::try_borrow_with ([bffa4028](https://github.com/indiv0/lazycell/commit/bffa4028966…
[all …]
DREADME.md1 # lazycell chapter
6 …ref="https://travis-ci.org/indiv0/lazycell" title="Travis Build Status"><img src="https://travis-c…
10 …<a href="https://indiv0.github.io/lazycell/lazycell" title="API Docs"><img src="https://img.shield…
11 …<a href="https://crates.io/crates/lazycell" title="Crates.io"><img src="https://img.shields.io/cra…
12 …tle="License: MIT/Apache-2.0"><img src="https://img.shields.io/crates/l/lazycell.svg" alt="license…
13 …ralls.io/github/indiv0/lazycell?branch=master" title="Coverage Status"><img src="https://coveralls…
33 lazycell = "1.2"
39 extern crate lazycell;
67 [api-docs]: https://indiv0.github.io/lazycell/lazycell
68 [contributing]: https://github.com/indiv0/lazycell/blob/master/CONTRIBUTING.md "Contribution Guide"
[all …]
DCargo.toml2 name = "lazycell"
7 repository = "https://github.com/indiv0/lazycell"
8 documentation = "http://indiv0.github.io/lazycell/lazycell/"
10 keywords = ["lazycell", "lazy", "cell", "library"]
DCONTRIBUTORS.md1 The following is a list of contributors to the [lazycell][lazycell] project, in
17 [lazycell]: https://github.com/indiv0/lazycell
DCONTRIBUTING.md4 Please use the following guidelines when contributing to `lazycell`:
6 1. Fork `lazycell`
7 2. Clone your fork (`git clone https://github.com/$YOUR_USERNAME/lazycell && cd lazycell`)
DREADME.OpenSource3 "Name": "lazycell",
8 "Upstream URL": "https://github.com/indiv0/lazycell",
DBUILD.gn17 crate_name = "lazycell"
25 cargo_pkg_name = "lazycell"
D.clog.toml2 repository = "https://github.com/indiv0/lazycell"
DLICENSE-MIT2 Modified work Copyright (c) 2016-2018 Nikita Pekin and lazycell contributors
/third_party/rust/crates/lazycell/tests/
Dlib.rs1 extern crate lazycell;
3 use lazycell::LazyCell;
7 let lazycell = LazyCell::new(); in test_lazycell() localVariable
9 assert_eq!(lazycell.borrow(), None); in test_lazycell()
10 assert!(!lazycell.filled()); in test_lazycell()
12 lazycell.fill(1).unwrap(); in test_lazycell()
14 assert!(lazycell.filled()); in test_lazycell()
15 assert_eq!(lazycell.borrow(), Some(&1)); in test_lazycell()
16 assert_eq!(lazycell.into_inner(), Some(1)); in test_lazycell()
21 let lazycell: LazyCell<usize> = LazyCell::new(); in test_already_filled_error() localVariable
[all …]
/third_party/rust/crates/once_cell/
DREADME.md51 * [lazycell](https://crates.io/crates/lazycell)
/third_party/rust/crates/bindgen/bindgen/
DCargo.toml31 lazycell = "1"
DBUILD.gn32 "//third_party/rust/crates/lazycell:lib",
/third_party/rust/crates/bindgen/
DCargo.lock51 "lazycell",
344 name = "lazycell"
/third_party/rust/crates/bindgen/bindgen/ir/
Ditem.rs23 use lazycell::LazyCell;