pub struct Key<T: ValueType> { /* private fields */ }Expand description
A property key that carries its value type T in the type system.
§Performance
Copying and unwrapping are O(1).
Implementations§
Trait Implementations§
impl<T: Copy + ValueType> Copy for Key<T>
impl<T: Eq + ValueType> Eq for Key<T>
impl<T: ValueType> StructuralPartialEq for Key<T>
Auto Trait Implementations§
impl<T> Freeze for Key<T>
impl<T> RefUnwindSafe for Key<T>where
T: RefUnwindSafe,
impl<T> Send for Key<T>where
T: Send,
impl<T> Sync for Key<T>where
T: Sync,
impl<T> Unpin for Key<T>where
T: Unpin,
impl<T> UnsafeUnpin for Key<T>
impl<T> UnwindSafe for Key<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