MCPcopy Create free account
hub / github.com/ElementsProject/lightning / visit_map

Method visit_map

plugins/rest-plugin/src/yaml.rs:183–200  ·  view source on GitHub ↗
(self, mut access: A)

Source from the content-addressed store, hash-verified

181 }
182
183 fn visit_map<A>(self, mut access: A) -> Result<Value, A::Error>
184 where
185 A: MapAccess<'de>,
186 {
187 self.budget.bump_node::<A::Error>()?;
188 let mut map = Map::new();
189 while let Some((key, value)) = access.next_entry_seed(
190 BoundedKey {
191 budget: self.budget,
192 },
193 BoundedValue {
194 budget: self.budget,
195 },
196 )? {
197 map.insert(key, value);
198 }
199 Ok(Value::Object(map))
200 }
201}
202
203struct KeyVisitor<'a> {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected