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

Method visit_seq

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

Source from the content-addressed store, hash-verified

167 }
168
169 fn visit_seq<A>(self, mut access: A) -> Result<Value, A::Error>
170 where
171 A: SeqAccess<'de>,
172 {
173 self.budget.bump_node::<A::Error>()?;
174 let mut vec = Vec::new();
175 while let Some(elem) = access.next_element_seed(BoundedValue {
176 budget: self.budget,
177 })? {
178 vec.push(elem);
179 }
180 Ok(Value::Array(vec))
181 }
182
183 fn visit_map<A>(self, mut access: A) -> Result<Value, A::Error>
184 where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected