pub trait Store {
// Required method
fn store(
&mut self,
transaction: &mut dyn Transaction,
object: &mut dyn Writer,
);
}Expand description
Store data into the index.
This trait is usually implemented on a type that also implements
Strategy, and not on the field directly.
Required Methods§
Sourcefn store(&mut self, transaction: &mut dyn Transaction, object: &mut dyn Writer)
fn store(&mut self, transaction: &mut dyn Transaction, object: &mut dyn Writer)
Store the contents of the field into the index. The field itself needs to track whether this should be a complete rewrite or an upsert.
The transaction parameter is provided for strategies to
store values in the index, while the object is to store
values in the object pool.
Typically, the ChunkPointer values returned by object
should be stored in the index.