Home
last modified time | relevance | path

Searched refs:LazyCell (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/lazycell/src/
Dlib.rs62 pub struct LazyCell<T> { struct
66 impl<T> LazyCell<T> { implementation
68 pub fn new() -> LazyCell<T> { in new()
69 LazyCell { inner: UnsafeCell::new(None) } in new()
208 impl<T: Copy> LazyCell<T> { implementation
218 impl <T: Clone> Clone for LazyCell<T> { implementation
224 fn clone(&self) -> LazyCell<T> { in clone()
225 LazyCell { inner: UnsafeCell::new(self.borrow().map(Clone::clone) ) } in clone()
351 use super::{AtomicLazyCell, LazyCell};
355 let lazycell: LazyCell<usize> = LazyCell::new(); in test_borrow_from_empty()
[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…
33 * add `LazyCell::borrow_mut_with` and `LazyCell::try_borrow_mut_with` ([fdc6d268](https://github.…
58 * add LazyCell::try_borrow_with ([bffa4028](https://github.com/indiv0/lazycell/commit/bffa4028966…
59 * add LazyCell::borrow_mut method ([fd419dea](https://github.com/indiv0/lazycell/commit/fd419dea9…
95 * add borrow_with to LazyCell ([a15efa35](https://github.com/indiv0/lazycell/commit/a15efa359ea5a…
105 * **LazyCell:** return Err(value) on full cell ([68f3415d](https://github.com/indiv0/lazycell/comm…
109 * **LazyCell:** return Err(value) on full cell ([68f3415d](https://github.com/indiv0/lazycell/comm…
144 …* add tests for `LazyCell` struct ([38f1313d](https://github.com/indiv0/lazycell/commit/38f1313d9…
[all …]
DREADME.md54 The LazyCell library is based originally on work by The Rust Project Developers
62 LazyCell is distributed under the terms of both the MIT license and the Apache
/third_party/rust/crates/lazycell/tests/
Dlib.rs3 use lazycell::LazyCell;
7 let lazycell = LazyCell::new(); in test_lazycell()
21 let lazycell: LazyCell<usize> = LazyCell::new(); in test_already_filled_error()
/third_party/rust/crates/bindgen/bindgen/ir/
Ditem.rs23 use lazycell::LazyCell;
389 local_id: LazyCell<usize>,
398 canonical_name: LazyCell<String>,
402 path_for_allowlisting: LazyCell<Vec<String>>,
440 local_id: LazyCell::new(), in new()
442 canonical_name: LazyCell::new(), in new()
443 path_for_allowlisting: LazyCell::new(), in new()