Function json_syntax::print::print_object
source · pub fn print_object<'a, V, I: IntoIterator<Item = (&'a str, V)>>(
entries: I,
f: &mut Formatter<'_>,
options: &Options,
indent: usize,
sizes: &[Size],
index: &mut usize
) -> Resultwhere
I::IntoIter: ExactSizeIterator,
V: PrintWithSize,
Examples found in repository?
src/print.rs (lines 611-618)
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619
fn fmt_with_size(
&self,
f: &mut fmt::Formatter,
options: &Options,
indent: usize,
sizes: &[Size],
index: &mut usize,
) -> fmt::Result {
print_object(
self.iter().map(|e| (e.key.as_str(), &e.value)),
f,
options,
indent,
sizes,
index,
)
}