MCPcopy Create free account
hub / github.com/awslabs/llrt / append_value

Function append_value

libs/llrt_json/src/stringify.rs:375–385  ·  view source on GitHub ↗
(context: &mut StringifyContext<'_, '_>, add_comma: bool)

Source from the content-addressed store, hash-verified

373
374#[inline(always)]
375fn append_value(context: &mut StringifyContext<'_, '_>, add_comma: bool) -> Result<bool> {
376 match write_primitive(context, add_comma)? {
377 PrimitiveStatus::Written => Ok(true),
378 PrimitiveStatus::Ignored => Ok(false),
379 PrimitiveStatus::Iterate(new_value) => {
380 context.depth += 1;
381 iterate(context, new_value)?;
382 Ok(true)
383 },
384 }
385}
386
387#[inline(always)]
388fn write_key(string: &mut String, key: &str, indent: bool) {

Callers 2

run_to_jsonFunction · 0.85
iterateFunction · 0.85

Calls 2

write_primitiveFunction · 0.85
iterateFunction · 0.85

Tested by

no test coverage detected