writes a byte array to formatter. `[1, 2, 3]` ==> `"1,2,3"`
(data: &[u8], f: &mut fmt::Formatter)
| 5537 | |
| 5538 | /// writes a byte array to formatter. `[1, 2, 3]` ==> `"1,2,3"` |
| 5539 | fn fmt_binary(data: &[u8], f: &mut fmt::Formatter) -> fmt::Result { |
| 5540 | let mut iter = data.iter(); |
| 5541 | if let Some(b) = iter.next() { |
| 5542 | write!(f, "{b}")?; |
| 5543 | } |
| 5544 | for b in iter { |
| 5545 | write!(f, ",{b}")?; |
| 5546 | } |
| 5547 | Ok(()) |
| 5548 | } |
| 5549 | |
| 5550 | impl fmt::Debug for ScalarValue { |
| 5551 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |