(&mut self, mut key: F)
| 1246 | /// De-duplicates the vec according to the key selector given. |
| 1247 | #[inline(always)] |
| 1248 | pub fn dedup_by_key<F, K>(&mut self, mut key: F) |
| 1249 | where |
| 1250 | F: FnMut(&mut A::Item) -> K, |
| 1251 | K: PartialEq, |
| 1252 | { |
| 1253 | self.dedup_by(|a, b| key(a) == key(b)) |
| 1254 | } |
| 1255 | } |
| 1256 | |
| 1257 | impl<A> ArrayVec<A> { |