Closed
Description
-
Or a similar trait should exist and be provided by the standard indexable collections.
-
Or maybe there is a generic way to do this with indexable collections already, in which case it would be nice to see it documented alongside
Index
. -
Or a
Contains
trait withcontains(&self, key: &Q) -> bool
can be used to similar effect.