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

Method begin_array

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

Source from the content-addressed store, hash-verified

61
62impl serde_json::ser::Formatter for DepthLimitedFormatter {
63 fn begin_array<W: ?Sized + std::io::Write>(&mut self, writer: &mut W) -> std::io::Result<()> {
64 self.push();
65 writer.write_all(b"[")
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();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected