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