Searched refs:try_borrow_mut_with (Results 1 – 2 of 2) sorted by relevance
192 pub fn try_borrow_mut_with<E, F>(&mut self, f: F) -> Result<&mut T, E> in try_borrow_mut_with() method536 let result = lazycell.try_borrow_mut_with::<(), _>(|| Ok(1)); in test_try_borrow_mut_with_ok()546 let result = lazycell.try_borrow_mut_with(|| Err(1)); in test_try_borrow_mut_with_err()554 let result = lazycell.try_borrow_mut_with::<(), _>(|| unreachable!()); in test_try_borrow_mut_with_already_filled()
52 * add `LazyCell::borrow_mut_with` and `LazyCell::try_borrow_mut_with` ([fdc6d268](https://github.…