We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bc1ca4 commit 2bc999aCopy full SHA for 2bc999a
src/libstd/container.rs
@@ -38,6 +38,7 @@ pub trait Map<K, V>: Container {
38
fn find<'a>(&'a self, key: &K) -> Option<&'a V>;
39
40
/// Return true if the map contains a value for the specified key
41
+ #[inline]
42
fn contains_key(&self, key: &K) -> bool {
43
self.find(key).is_some()
44
}
0 commit comments