• Home
  • Raw
  • Download

Lines Matching full:maps

16 enum Maps {  enum
25 impl fmt::Debug for Maps { implementation
28 Maps::U32(map) => fmt::Debug::fmt(map, f), in fmt()
29 Maps::I32(map) => fmt::Debug::fmt(map, f), in fmt()
30 Maps::U64(map) => fmt::Debug::fmt(map, f), in fmt()
31 Maps::I64(map) => fmt::Debug::fmt(map, f), in fmt()
32 Maps::Bool(map) => fmt::Debug::fmt(map, f), in fmt()
33 Maps::String(map) => fmt::Debug::fmt(map, f), in fmt()
38 impl Maps { implementation
41 Maps::U32(m) => m.len(), in len()
42 Maps::I32(m) => m.len(), in len()
43 Maps::U64(m) => m.len(), in len()
44 Maps::I64(m) => m.len(), in len()
45 Maps::Bool(m) => m.len(), in len()
46 Maps::String(m) => m.len(), in len()
52 Maps::U32(m) => m.is_empty(), in is_empty()
53 Maps::I32(m) => m.is_empty(), in is_empty()
54 Maps::U64(m) => m.is_empty(), in is_empty()
55 Maps::I64(m) => m.is_empty(), in is_empty()
56 Maps::Bool(m) => m.is_empty(), in is_empty()
57 Maps::String(m) => m.is_empty(), in is_empty()
63 Maps::U32(m) => m.clear(), in clear()
64 Maps::I32(m) => m.clear(), in clear()
65 Maps::U64(m) => m.clear(), in clear()
66 Maps::I64(m) => m.clear(), in clear()
67 Maps::Bool(m) => m.clear(), in clear()
68 Maps::String(m) => m.clear(), in clear()
74 Maps::U32(..) => RuntimeType::U32, in key_type()
75 Maps::I32(..) => RuntimeType::I32, in key_type()
76 Maps::U64(..) => RuntimeType::U64, in key_type()
77 Maps::I64(..) => RuntimeType::I64, in key_type()
78 Maps::Bool(..) => RuntimeType::Bool, in key_type()
79 Maps::String(..) => RuntimeType::String, in key_type()
88 /// Type of key is defined by the maps key.
90 maps: Maps, field
95 fmt::Debug::fmt(&self.maps, f) in fmt()
103 maps: match key { in new()
104 RuntimeType::U32 => Maps::U32(HashMap::new()), in new()
105 RuntimeType::I32 => Maps::I32(HashMap::new()), in new()
106 RuntimeType::U64 => Maps::U64(HashMap::new()), in new()
107 RuntimeType::I64 => Maps::I64(HashMap::new()), in new()
108 RuntimeType::Bool => Maps::Bool(HashMap::new()), in new()
109 RuntimeType::String => Maps::String(HashMap::new()), in new()
141 match &self.maps { in reflect_iter()
142 Maps::U32(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
146 Maps::I32(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
150 Maps::U64(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
154 Maps::I64(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
158 Maps::Bool(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
162 Maps::String(m) => ReflectMapIter::new(DynamicMapIterImpl { in reflect_iter()
170 self.maps.len() in len()
174 self.maps.is_empty() in is_empty()
178 match (&self.maps, key) { in get()
179 (Maps::U32(m), ReflectValueRef::U32(v)) => m.get(&v), in get()
180 (Maps::U64(m), ReflectValueRef::U64(v)) => m.get(&v), in get()
181 (Maps::I32(m), ReflectValueRef::I32(v)) => m.get(&v), in get()
182 (Maps::I64(m), ReflectValueRef::I64(v)) => m.get(&v), in get()
183 (Maps::Bool(m), ReflectValueRef::Bool(v)) => m.get(&v), in get()
184 (Maps::String(m), ReflectValueRef::String(v)) => m.get(&*v), in get()
192 match (&mut self.maps, &key) { in insert()
193 (Maps::U32(m), ReflectValueBox::U32(k)) => m.insert(*k, value), in insert()
194 (Maps::U64(m), ReflectValueBox::U64(k)) => m.insert(*k, value), in insert()
195 (Maps::I32(m), ReflectValueBox::I32(k)) => m.insert(*k, value), in insert()
196 (Maps::I64(m), ReflectValueBox::I64(k)) => m.insert(*k, value), in insert()
197 (Maps::Bool(m), ReflectValueBox::Bool(k)) => m.insert(*k, value), in insert()
198 (Maps::String(m), _) => match key { in insert()
207 self.maps.clear() in clear()
211 self.maps.key_type() in key_type()