Index
trait should provide get(&self, key: &Q) -> Option<&V>
#1790
Labels
T-libs-api
Relevant to the library API team, which will review and decide on the RFC.
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.The text was updated successfully, but these errors were encountered: