mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-25 09:03:59 +02:00
20 lines
465 B
Rust
20 lines
465 B
Rust
use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
|
|
|
use super::DocumentChanges;
|
|
use crate::update::new::DocumentChange;
|
|
use crate::Result;
|
|
|
|
pub struct UpdateByFunction;
|
|
|
|
impl<'p> DocumentChanges<'p> for UpdateByFunction {
|
|
type Parameter = ();
|
|
|
|
fn document_changes(
|
|
self,
|
|
_param: Self::Parameter,
|
|
) -> Result<impl ParallelIterator<Item = Result<DocumentChange>> + 'p> {
|
|
todo!();
|
|
Ok(vec![].into_par_iter())
|
|
}
|
|
}
|