MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / write_indent

Function write_indent

std/json/src/main/serializer.rs:180–185  ·  view source on GitHub ↗
(out: &mut String, unit: Option<&str>, depth: usize)

Source from the content-addressed store, hash-verified

178}
179
180fn write_indent(out: &mut String, unit: Option<&str>, depth: usize) {
181 if let Some(u) = unit {
182 out.push('\n');
183 for _ in 0..depth { out.push_str(u); }
184 }
185}
186
187fn escape_string(s: &str, out: &mut String, ensure_ascii: bool) {
188 out.push('"');

Callers 2

serialize_sequenceFunction · 0.85
serialize_objectFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected