Skip to main content

KeyExtract

Trait KeyExtract 

Source
pub trait KeyExtract<S, A, K>: Send + Sync {
    // Required method
    fn extract(&self, s: &S, a: &A, idx: usize) -> K;
}

Required Methods§

Source

fn extract(&self, s: &S, a: &A, idx: usize) -> K

Implementors§

Source§

impl<S, A, K, F> KeyExtract<S, A, K> for F
where F: Fn(&S, &A, usize) -> K + Send + Sync,

Source§

impl<S, A, K, KA> KeyExtract<S, A, K> for EntityKeyAdapter<KA>
where KA: Fn(&A) -> K + Send + Sync,