MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / print_bytes

Function print_bytes

protocol/src/value.rs:728–739  ·  view source on GitHub ↗
(f: &mut std::fmt::Formatter<'_>, bytes: &[u8])

Source from the content-addressed store, hash-verified

726}
727
728fn 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
741impl RValue {
742 pub fn typename(&self) -> String {

Callers 2

fmtMethod · 0.85
print_os_stringFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected