(f: &mut std::fmt::Formatter<'_>, bytes: &[u8])
| 726 | } |
| 727 | |
| 728 | fn print_bytes(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { |
| 729 | write!(f, "[")?; |
| 730 | for (i, b) in bytes.iter().enumerate() { |
| 731 | write!( |
| 732 | f, |
| 733 | "0x{b:02x}{}", |
| 734 | if i < bytes.len() - 1 { ", " } else { "" } |
| 735 | )?; |
| 736 | } |
| 737 | write!(f, "]")?; |
| 738 | Ok(()) |
| 739 | } |
| 740 | |
| 741 | impl RValue { |
| 742 | pub fn typename(&self) -> String { |
no test coverage detected