pub trait KeyExtract<S, A, K>: Send + Sync {
// Required method
fn extract(&self, s: &S, a: &A, idx: usize) -> K;
}Expand description
Extracts a join key from a solution and entity.
Blanket impl for Fn(&S, &A, usize) -> K preserves all existing usage.
EntityKeyAdapter wraps entity-only key functions for the self-join case.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".