Lines Matching refs:formatter
31 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
33 Value::Boolean(boolean) => write!(formatter, "{}", boolean), in fmt()
34 Value::Number(number) => write!(formatter, "{}", number), in fmt()
35 Value::String(string) => write!(formatter, "\"{}\"", string), in fmt()
37 formatter.write_str("{")?; in fmt()
40 write!(formatter, "\"{}\": {},", key, value)?; in fmt()
42 write!(formatter, "\"{}\": {}", last.0, last.1)?; in fmt()
44 formatter.write_str("}") in fmt()
93 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
95 formatter.write_str("{\n")?; in fmt()
98 write!(formatter, " \"{}\": {},\n", key, value)?; in fmt()
100 write!(formatter, " \"{}\": {}\n", last.0, last.1)?; in fmt()
102 formatter.write_str("}") in fmt()