(bytes: &[u8], out: &mut Vec<u8>)
| 463 | } |
| 464 | |
| 465 | fn encode_binary(bytes: &[u8], out: &mut Vec<u8>) { |
| 466 | out.push(b'"'); |
| 467 | for byte in bytes { |
| 468 | write!(out, "{byte:02x}").unwrap(); |
| 469 | } |
| 470 | out.push(b'"'); |
| 471 | } |
| 472 | |
| 473 | struct FieldEncoder<'a> { |
| 474 | field: FieldRef, |