Home
last modified time | relevance | path

Searched refs:borrow_with (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/lazycell/src/
Dlib.rs138 pub fn borrow_with<F: FnOnce() -> T>(&self, f: F) -> &T { in borrow_with() method
426 let value = lazycell.borrow_with(|| 1); in test_borrow_with()
435 let value = lazycell.borrow_with(|| 1); in test_borrow_with_already_filled()
445 let value = lazycell.borrow_with(|| 2); in test_borrow_with_not_called_when_filled()
458 lazycell.borrow_with(|| { in test_borrow_with_sound_with_reentrancy()
/external/rust/crates/lazycell/
DCHANGELOG.md72 * fix soundness hole in borrow_with ([d1f46bef](https://github.com/indiv0/lazycell/commit/d1f46be…
114 * add borrow_with to LazyCell ([a15efa35](https://github.com/indiv0/lazycell/commit/a15efa359ea5a…
/external/rust/crates/bindgen/src/ir/
Ditem.rs530 *self.local_id.borrow_with(|| { in local_id()
1019 .borrow_with(|| self.compute_path(ctx, UserMangled::No)) in path_for_allowlisting()
1872 .borrow_with(|| { in canonical_name()