pub struct PhantomKey<K: TypedRecordKey> { /* private fields */ }Expand description
A PhantomKey is zero sized type which is generic over a TypedRecordKey.
Trait Implementations§
Source§impl<K: Clone + TypedRecordKey> Clone for PhantomKey<K>
impl<K: Clone + TypedRecordKey> Clone for PhantomKey<K>
Source§fn clone(&self) -> PhantomKey<K>
fn clone(&self) -> PhantomKey<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug + TypedRecordKey> Debug for PhantomKey<K>
impl<K: Debug + TypedRecordKey> Debug for PhantomKey<K>
Source§impl<K: TypedRecordKey> Default for PhantomKey<K>
impl<K: TypedRecordKey> Default for PhantomKey<K>
Auto Trait Implementations§
impl<K> Freeze for PhantomKey<K>
impl<K> RefUnwindSafe for PhantomKey<K>
impl<K> Send for PhantomKey<K>
impl<K> Sync for PhantomKey<K>
impl<K> Unpin for PhantomKey<K>
impl<K> UnwindSafe for PhantomKey<K>
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