(&self, list: Vec<&K>)
| 226 | /// gets documents |
| 227 | #[inline] |
| 228 | pub fn gets(&self, list: Vec<&K>) -> Vec<Ref<K, Doc>> { |
| 229 | let mut result = Vec::with_capacity(list.len()); |
| 230 | |
| 231 | list.iter().for_each(|key| { |
| 232 | if let Some(r) = self.collection.get(key) { |
| 233 | result.push(r); |
| 234 | } |
| 235 | }); |
| 236 | |
| 237 | result |
| 238 | } |
| 239 | |
| 240 | /// gets documents |
| 241 | #[inline] |