enum KeyOrRef<'a, K, Q: ?Sized> {
Borrowed(&'a Q),
Owned(K),
}
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, Q: ?Sized> RefUnwindSafe for KeyOrRef<'a, K, Q>where K: RefUnwindSafe, Q: RefUnwindSafe,
impl<'a, K, Q: ?Sized> Send for KeyOrRef<'a, K, Q>where K: Send, Q: Sync,
impl<'a, K, Q: ?Sized> Sync for KeyOrRef<'a, K, Q>where K: Sync, Q: Sync,
impl<'a, K, Q: ?Sized> Unpin for KeyOrRef<'a, K, Q>where K: Unpin,
impl<'a, K, Q: ?Sized> UnwindSafe for KeyOrRef<'a, K, Q>where K: UnwindSafe, Q: RefUnwindSafe,
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