Home
last modified time | relevance | path

Searched refs:try_borrow_mut_with (Results 1 - 1 of 1) sorted by relevance

/third_party/rust/crates/lazycell/src/
H A Dlib.rs185 pub fn try_borrow_mut_with<E, F>(&mut self, f: F) -> Result<&mut T, E> in try_borrow_mut_with() functions
193 panic!("try_borrow_mut_with: cell was filled by closure") in try_borrow_mut_with()
517 let result = lazycell.try_borrow_mut_with::<(), _>(|| Ok(1)); in test_try_borrow_mut_with_ok()
527 let result = lazycell.try_borrow_mut_with(|| Err(1)); in test_try_borrow_mut_with_err()
535 let result = lazycell.try_borrow_mut_with::<(), _>(|| unreachable!()); in test_try_borrow_mut_with_already_filled()

Completed in 2 milliseconds