pub struct FnCache<Id, F> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<Id: Display + Hash + PartialEq + Eq + Clone, F> Cache<Id> for FnCache<Id, F>where
F: for<'a> FnMut(&'a Id) -> Result<String, Box<dyn Debug>>,
impl<Id: Display + Hash + PartialEq + Eq + Clone, F> Cache<Id> for FnCache<Id, F>where F: for<'a> FnMut(&'a Id) -> Result<String, Box<dyn Debug>>,
Auto Trait Implementations§
impl<Id, F> RefUnwindSafe for FnCache<Id, F>where F: RefUnwindSafe, Id: RefUnwindSafe,
impl<Id, F> Send for FnCache<Id, F>where F: Send, Id: Send,
impl<Id, F> Sync for FnCache<Id, F>where F: Sync, Id: Sync,
impl<Id, F> Unpin for FnCache<Id, F>where F: Unpin, Id: Unpin,
impl<Id, F> UnwindSafe for FnCache<Id, F>where F: UnwindSafe, Id: 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