Lines Matching refs:map

80     map: CtxHashMap<K, Val<V>>,  field
98 map: CtxHashMap::with_capacity(cap), in with_capacity()
121 match self.map.entry(key, ctx) { in entry_with_depth()
148 self.map in get()
154 .map(|entry| &entry.value) in get()
193 self.map.insert(key, val, ctx); in insert_with_depth()
223 let mut map: ScopedHashMap<i32, i32> = ScopedHashMap::new(); in basic() localVariable
225 match map.entry(&NullCtx, 0) { in basic()
229 match map.entry(&NullCtx, 2) { in basic()
233 match map.entry(&NullCtx, 2) { in basic()
237 map.increment_depth(); in basic()
238 match map.entry(&NullCtx, 2) { in basic()
242 match map.entry(&NullCtx, 1) { in basic()
246 match map.entry(&NullCtx, 1) { in basic()
250 match map.entry(&NullCtx, 0) { in basic()
254 match map.entry(&NullCtx, 2) { in basic()
258 map.decrement_depth(); in basic()
259 match map.entry(&NullCtx, 0) { in basic()
263 match map.entry(&NullCtx, 2) { in basic()
267 map.increment_depth(); in basic()
268 match map.entry(&NullCtx, 2) { in basic()
272 match map.entry(&NullCtx, 1) { in basic()
276 match map.entry(&NullCtx, 1) { in basic()
280 match map.entry(&NullCtx, 2) { in basic()
284 map.decrement_depth(); in basic()
285 map.increment_depth(); in basic()
286 map.increment_depth(); in basic()
287 map.increment_depth(); in basic()
288 match map.entry(&NullCtx, 2) { in basic()
292 match map.entry(&NullCtx, 1) { in basic()
296 match map.entry(&NullCtx, 1) { in basic()
300 match map.entry(&NullCtx, 2) { in basic()
304 map.decrement_depth(); in basic()
305 map.decrement_depth(); in basic()
306 map.decrement_depth(); in basic()
307 match map.entry(&NullCtx, 2) { in basic()
311 match map.entry(&NullCtx, 1) { in basic()
319 let mut map: ScopedHashMap<i32, i32> = ScopedHashMap::new(); in insert_arbitrary_depth() localVariable
320 map.insert_if_absent(&NullCtx, 1, 2); in insert_arbitrary_depth()
321 assert_eq!(map.get(&NullCtx, &1), Some(&2)); in insert_arbitrary_depth()
322 map.increment_depth(); in insert_arbitrary_depth()
323 assert_eq!(map.get(&NullCtx, &1), Some(&2)); in insert_arbitrary_depth()
324 map.insert_if_absent(&NullCtx, 3, 4); in insert_arbitrary_depth()
325 assert_eq!(map.get(&NullCtx, &3), Some(&4)); in insert_arbitrary_depth()
326 map.decrement_depth(); in insert_arbitrary_depth()
327 assert_eq!(map.get(&NullCtx, &3), None); in insert_arbitrary_depth()
328 map.increment_depth(); in insert_arbitrary_depth()
329 map.insert_if_absent_with_depth(&NullCtx, 3, 4, 0); in insert_arbitrary_depth()
330 assert_eq!(map.get(&NullCtx, &3), Some(&4)); in insert_arbitrary_depth()
331 map.decrement_depth(); in insert_arbitrary_depth()
332 assert_eq!(map.get(&NullCtx, &3), Some(&4)); in insert_arbitrary_depth()