MCPcopy Create free account
hub / github.com/LEXUGE/dcompass / insert_multi

Method insert_multi

dmatcher/src/domain.rs:62–65  ·  view source on GitHub ↗

Pass in a string containing `\n` and get all domains inserted.

(&mut self, domain: &[Dname<Bytes>])

Source from the content-addressed store, hash-verified

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 -.

Callers 4

bench_matchFunction · 0.80
insert_multiFunction · 0.80
add_qnameMethod · 0.80
add_fileMethod · 0.80

Calls 2

iterMethod · 0.80
insertMethod · 0.80

Tested by 1

insert_multiFunction · 0.64