pub trait Strategy<T: Send + Sync>: Send + Sync {
    // Required method
    fn for_field(field: &T) -> Self
       where Self: Sized;
}
Expand description

Allows decoupling a storage strategy for index fields from the in-memory representation.

Required Methods§

source

fn for_field(field: &T) -> Selfwhere Self: Sized,

Instantiate a new Strategy.

Implementors§

source§

impl<T: Send + Sync + Clone> Strategy<T> for LocalField<T>

source§

impl<T: Send + Sync + Clone> Strategy<T> for SparseField<T>