pub struct Keyed<T>(pub T);
Expand description
A wrapper for data structures that implements Key
trait.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Key> Ord for Keyed<T>
impl<T: Key> Ord for Keyed<T>
Source§impl<T: Key> PartialOrd for Keyed<T>where
T::Output: PartialOrd,
impl<T: Key> PartialOrd for Keyed<T>where
T::Output: PartialOrd,
impl<T: Copy> Copy for Keyed<T>
impl<T: Key> Eq for Keyed<T>
Auto Trait Implementations§
impl<T> Freeze for Keyed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Keyed<T>where
T: RefUnwindSafe,
impl<T> Send for Keyed<T>where
T: Send,
impl<T> Sync for Keyed<T>where
T: Sync,
impl<T> Unpin for Keyed<T>where
T: Unpin,
impl<T> UnwindSafe for Keyed<T>where
T: 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