8 trait Recover<Q: ?Sized> {
11 fn get(&self, key: &Q) -> Option<&Self::Key>;
12 fn take(&mut self, key: &Q) -> Option<Self::Key>;
13 fn replace(&mut self, key: Self::Key) -> Option<Self::Key>;
17 pub unsafe fn unwrap_unchecked<T>(val: Option<T>) -> T {
18 val.unwrap_or_else(|| {
19 if cfg!(debug_assertions) {
20 panic!("'unchecked' unwrap on None in BTreeMap");
23 core::intrinsics::unreachable();