@@ -21,6 +21,8 @@ use core::ops::{Bound, RangeBounds};
21
21
/// actually backed by a [`HashMap`], with some additional tracking to ensure we can iterate over
22
22
/// keys in the order defined by [`Ord`].
23
23
///
24
+ /// (C-not exported) as bindings provide alternate accessors rather than exposing maps directly.
25
+ ///
24
26
/// [`BTreeMap`]: alloc::collections::BTreeMap
25
27
#[ derive( Clone , Debug , Eq ) ]
26
28
pub struct IndexedMap < K : Hash + Ord , V > {
@@ -147,6 +149,8 @@ impl<K: Hash + Ord + PartialEq, V: PartialEq> PartialEq for IndexedMap<K, V> {
147
149
}
148
150
149
151
/// An iterator over a range of values in an [`IndexedMap`]
152
+ ///
153
+ /// (C-not exported) as bindings provide alternate accessors rather than exposing maps directly.
150
154
pub struct Range < ' a , K : Hash + Ord , V > {
151
155
inner_range : Iter < ' a , K > ,
152
156
map : & ' a HashMap < K , V > ,
@@ -161,6 +165,8 @@ impl<'a, K: Hash + Ord, V: 'a> Iterator for Range<'a, K, V> {
161
165
}
162
166
163
167
/// An [`Entry`] for a key which currently has no value
168
+ ///
169
+ /// (C-not exported) as bindings provide alternate accessors rather than exposing maps directly.
164
170
pub struct VacantEntry < ' a , K : Hash + Ord , V > {
165
171
#[ cfg( feature = "hashbrown" ) ]
166
172
underlying_entry : hash_map:: VacantEntry < ' a , K , V , hash_map:: DefaultHashBuilder > ,
@@ -171,6 +177,8 @@ pub struct VacantEntry<'a, K: Hash + Ord, V> {
171
177
}
172
178
173
179
/// An [`Entry`] for an existing key-value pair
180
+ ///
181
+ /// (C-not exported) as bindings provide alternate accessors rather than exposing maps directly.
174
182
pub struct OccupiedEntry < ' a , K : Hash + Ord , V > {
175
183
#[ cfg( feature = "hashbrown" ) ]
176
184
underlying_entry : hash_map:: OccupiedEntry < ' a , K , V , hash_map:: DefaultHashBuilder > ,
@@ -181,6 +189,8 @@ pub struct OccupiedEntry<'a, K: Hash + Ord, V> {
181
189
182
190
/// A mutable reference to a position in the map. This can be used to reference, add, or update the
183
191
/// value at a fixed key.
192
+ ///
193
+ /// (C-not exported) as bindings provide alternate accessors rather than exposing maps directly.
184
194
pub enum Entry < ' a , K : Hash + Ord , V > {
185
195
/// A mutable reference to a position within the map where there is no value.
186
196
Vacant ( VacantEntry < ' a , K , V > ) ,
0 commit comments