pub struct OptionMemo<K: Hash + Eq, V: Clone> { /* private fields */ }Expand description
Memoizing wrapper around a function returning Option<T>.
Caches computed results to avoid recomputing them.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for OptionMemo<K, V>
impl<K, V> RefUnwindSafe for OptionMemo<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for OptionMemo<K, V>
impl<K, V> Sync for OptionMemo<K, V>
impl<K, V> Unpin for OptionMemo<K, V>
impl<K, V> UnsafeUnpin for OptionMemo<K, V>
impl<K, V> UnwindSafe for OptionMemo<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more