pub struct EntityKeyAdapter<KA> { /* private fields */ }Expand description
Wraps an entity-only key function Fn(&A) -> K as a KeyExtract.
Used in the self-join case where the user passes equal(|a: &A| key_fn(a)).
The solution and index parameters are ignored.
Implementations§
Source§impl<KA> EntityKeyAdapter<KA>
impl<KA> EntityKeyAdapter<KA>
Trait Implementations§
Source§impl<KA: Clone> Clone for EntityKeyAdapter<KA>
impl<KA: Clone> Clone for EntityKeyAdapter<KA>
impl<KA: Copy> Copy for EntityKeyAdapter<KA>
Auto Trait Implementations§
impl<KA> Freeze for EntityKeyAdapter<KA>where
KA: Freeze,
impl<KA> RefUnwindSafe for EntityKeyAdapter<KA>where
KA: RefUnwindSafe,
impl<KA> Send for EntityKeyAdapter<KA>where
KA: Send,
impl<KA> Sync for EntityKeyAdapter<KA>where
KA: Sync,
impl<KA> Unpin for EntityKeyAdapter<KA>where
KA: Unpin,
impl<KA> UnsafeUnpin for EntityKeyAdapter<KA>where
KA: UnsafeUnpin,
impl<KA> UnwindSafe for EntityKeyAdapter<KA>where
KA: 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