Function diff_hashsets

Source
pub fn diff_hashsets(
    new_set: &HashSet<TopicId>,
    current_set: &HashSet<TopicId>,
) -> (Vec<TopicId>, Vec<TopicId>)
Expand description

This method return a tuple off two vec containing added and removed values.

@param new_set: &HashSet, The new set containing incoming values @param current_set: &HashSet, the current set containing actual values

@return added_values, removed_values: (Vec, Vec): two vectors containing differences from the original set