MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / dedup_by_key

Method dedup_by_key

src/arrayvec.rs:1248–1254  ·  view source on GitHub ↗
(&mut self, mut key: F)

Source from the content-addressed store, hash-verified

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
1257impl<A> ArrayVec<A> {

Callers

nothing calls this directly

Calls 1

dedup_byMethod · 0.45

Tested by

no test coverage detected