Home
last modified time | relevance | path

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

/external/rust/crates/lazycell/src/
Dlib.rs68 pub struct LazyCell<T> { struct
72 impl<T> LazyCell<T> { impl
74 pub fn new() -> LazyCell<T> { in new()
75 LazyCell { inner: UnsafeCell::new(None) } in new()
215 impl<T: Copy> LazyCell<T> { implementation
225 impl<T> Default for LazyCell<T> { implementation
231 impl <T: Clone> Clone for LazyCell<T> { implementation
237 fn clone(&self) -> LazyCell<T> { in clone()
238 LazyCell { inner: UnsafeCell::new(self.borrow().map(Clone::clone) ) } in clone()
370 use super::{AtomicLazyCell, LazyCell};
[all …]
Dserde_impl.rs15 use super::{LazyCell, AtomicLazyCell};
17 impl<T: Serialize> Serialize for LazyCell<T> { implementation
38 type Value = LazyCell<T>;
45 let mut cell = LazyCell::new(); in visit_some()
51 Ok(LazyCell::new()) in visit_none()
55 impl<'de, T: Deserialize<'de>> Deserialize<'de> for LazyCell<T> { implementation
/external/rust/crates/lazycell/
DCHANGELOG.md8 * **lazycell:** Fix unsound aliasing in `LazyCell::fill` ([e789ac1a](https://github.com/indiv0/laz…
26 * Implement Clone for LazyCell and AtomicLazyCell ([30fe4a8f](https://github.com/indiv0/lazycell/…
36 * add `LazyCell::replace` for infallible access ([a63ffb90](https://github.com/indiv0/lazycell/co…
46 * add note regarding LazyCell::borrow_mut ([9d634d1f](https://github.com/indiv0/lazycell/commit/9…
52 * add `LazyCell::borrow_mut_with` and `LazyCell::try_borrow_mut_with` ([fdc6d268](https://github.…
77 * add LazyCell::try_borrow_with ([bffa4028](https://github.com/indiv0/lazycell/commit/bffa4028966…
78 * add LazyCell::borrow_mut method ([fd419dea](https://github.com/indiv0/lazycell/commit/fd419dea9…
114 * add borrow_with to LazyCell ([a15efa35](https://github.com/indiv0/lazycell/commit/a15efa359ea5a…
124 * **LazyCell:** return Err(value) on full cell ([68f3415d](https://github.com/indiv0/lazycell/comm…
128 * **LazyCell:** return Err(value) on full cell ([68f3415d](https://github.com/indiv0/lazycell/comm…
[all …]
DREADME.md55 The LazyCell library is based originally on work by The Rust Project Developers
63 LazyCell is distributed under the terms of both the MIT license and the Apache
/external/rust/crates/bindgen/src/ir/
Ditem.rs26 use lazycell::LazyCell;
392 local_id: LazyCell<usize>,
401 canonical_name: LazyCell<String>,
405 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()