pub fn remove_many_word_synonyms(
        &self,
        words: &[String],
    ) -> HashMap<String, Box<[String]>> {
        let guard = self.synonyms.load();
        let mut current_mapping = guard.as_ref().clone();

        for word in words {
            current_mapping.remove(word);
        }

        current_mapping
    }
/// Removes a set of words and their synonyms.
Removes a set of words and their synonyms.
Removes a set of words and their synonyms .
pub fn remove_many_word_synonyms(
        &self,
        words: &[String],
    ) -> HashMap<String, Box<[String]>> {
        let guard = self.synonyms.load();
        let mut current_mapping = guard.as_ref().clone();
        for word in words {
            current_mapping.remove(word);
        }
        current_mapping
    }
pub fn remove_many_word_synonyms ( & self , words : & [ String ] , ) -> HashMap < String , Box < [ String ] > > { let guard = self . synonyms . load ( ) ; let mut current_mapping = guard . as_ref ( ) . clone ( ) ; for word in words { current_mapping . remove ( word ) ; } current_mapping }
Removes a set of words and their synonyms.
Removes a set of words and their synonyms .
&self
words
&[String]
&self
words
&[String]