pub struct Cache<In, Out>(/* private fields */);Expand description
Cache for non-copyable types.
Implementations§
Source§impl<In, Out> Cache<In, Out>
impl<In, Out> Cache<In, Out>
Sourcepub fn contains_key(&self, key: &In) -> bool
pub fn contains_key(&self, key: &In) -> bool
Returns true if the cache contains the key.
Trait Implementations§
Auto Trait Implementations§
impl<In, Out> !Freeze for Cache<In, Out>
impl<In, Out> !RefUnwindSafe for Cache<In, Out>
impl<In, Out> Send for Cache<In, Out>
impl<In, Out> !Sync for Cache<In, Out>
impl<In, Out> Unpin for Cache<In, Out>where
In: Unpin,
impl<In, Out> UnwindSafe for Cache<In, Out>where
In: UnwindSafe,
Out: 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