blob: b8a0eafafd077d625eb9ee4d399681f8c0b49053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
macro_rules! fmt_impl {
($tr:ident, $ty:ty) => {
impl $tr for $ty {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
$tr::fmt(&BytesRef(self.as_ref()), f)
}
}
};
}
mod debug;
mod hex;
/// `BytesRef` is not a part of public API of bytes crate.
struct BytesRef<'a>(&'a [u8]);
|