Searched refs:borrow_mut_with (Results 1 – 2 of 2) sorted by relevance
158 pub fn borrow_mut_with<F: FnOnce() -> T>(&mut self, f: F) -> &mut T { in borrow_mut_with() method470 let value = lazycell.borrow_mut_with(|| 1); in test_borrow_mut_with()482 let value = lazycell.borrow_mut_with(|| 1); in test_borrow_mut_with_already_filled()492 let value = lazycell.borrow_mut_with(|| 2); in test_borrow_mut_with_not_called_when_filled()
52 * add `LazyCell::borrow_mut_with` and `LazyCell::try_borrow_mut_with` ([fdc6d268](https://github.…