Pass in a string containing `\n` and get all domains inserted.
(&mut self, domain: &[Dname<Bytes>])
| 60 | |
| 61 | /// Pass in a string containing `\n` and get all domains inserted. |
| 62 | pub fn insert_multi(&mut self, domain: &[Dname<Bytes>]) { |
| 63 | // This gets rid of empty substrings for stability reasons. See also https://github.com/LEXUGE/dcompass/issues/33. |
| 64 | domain.iter().for_each(|d| self.insert(d)); |
| 65 | } |
| 66 | |
| 67 | /// Pass in a domain and insert it into the matcher. |
| 68 | /// This ignores any line containing chars other than A-Z, a-z, 1-9, and -. |