Searched refs:lazycell (Results 1 – 16 of 16) sorted by relevance
/third_party/rust/crates/lazycell/src/ |
D | lib.rs | 355 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/ |
D | CHANGELOG.md | 7 * 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… 33 …lazycell/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 …]
|
D | README.md | 1 # 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 …]
|
D | Cargo.toml | 2 name = "lazycell" 7 repository = "https://github.com/indiv0/lazycell" 8 documentation = "http://indiv0.github.io/lazycell/lazycell/" 10 keywords = ["lazycell", "lazy", "cell", "library"]
|
D | CONTRIBUTORS.md | 1 The following is a list of contributors to the [lazycell][lazycell] project, in 17 [lazycell]: https://github.com/indiv0/lazycell
|
D | CONTRIBUTING.md | 4 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`)
|
D | README.OpenSource | 3 "Name": "lazycell", 8 "Upstream URL": "https://github.com/indiv0/lazycell",
|
D | BUILD.gn | 17 crate_name = "lazycell" 25 cargo_pkg_name = "lazycell"
|
D | .clog.toml | 2 repository = "https://github.com/indiv0/lazycell"
|
D | LICENSE-MIT | 2 Modified work Copyright (c) 2016-2018 Nikita Pekin and lazycell contributors
|
/third_party/rust/crates/lazycell/tests/ |
D | lib.rs | 1 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/ |
D | README.md | 51 * [lazycell](https://crates.io/crates/lazycell)
|
/third_party/rust/crates/bindgen/bindgen/ |
D | Cargo.toml | 31 lazycell = "1"
|
D | BUILD.gn | 32 "//third_party/rust/crates/lazycell:lib",
|
/third_party/rust/crates/bindgen/ |
D | Cargo.lock | 51 "lazycell", 344 name = "lazycell"
|
/third_party/rust/crates/bindgen/bindgen/ir/ |
D | item.rs | 23 use lazycell::LazyCell;
|