MCPcopy Create free account
hub / github.com/DioxusLabs/anyrender / end_array

Method end_array

crates/anyrender_serialize/src/json_formatter.rs:68–75  ·  view source on GitHub ↗
(&mut self, writer: &mut W)

Source from the content-addressed store, hash-verified

66 }
67
68 fn end_array<W: ?Sized + std::io::Write>(&mut self, writer: &mut W) -> std::io::Result<()> {
69 let (pretty, had_value) = self.pop();
70 if pretty && had_value {
71 writer.write_all(b"\n")?;
72 self.indent(writer)?;
73 }
74 writer.write_all(b"]")
75 }
76
77 fn begin_array_value<W: ?Sized + std::io::Write>(
78 &mut self,

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
indentMethod · 0.80

Tested by

no test coverage detected