bookdata::interactions

Trait Dedup

Source
pub trait Dedup<I: Interaction> {
    // Required methods
    fn add_interaction(&mut self, act: I) -> Result<()>;
    fn save(&mut self, path: &Path) -> Result<usize>;
}
Expand description

Interface for de-duplicating interactions.

Required Methods§

Source

fn add_interaction(&mut self, act: I) -> Result<()>

Save an item in the deduplciator.

Source

fn save(&mut self, path: &Path) -> Result<usize>

Write the de-duplicated reuslts to a file.

Implementors§

Source§

impl<I: Interaction, R> Dedup<I> for ActionDedup<R>
where R: FromActionSet + Send + Sync + 'static, for<'a> &'a [R]: RecordWriter<R>,

Source§

impl<I: Interaction, R> Dedup<I> for RatingDedup<R>
where R: FromRatingSet + Send + Sync + 'static, for<'a> &'a [R]: RecordWriter<R>,