Introduce hex/string printing in runtime.

This commit is contained in:
Gav committed 2018-01-27 13:42:40 +01:00
1 parent ace1387076
commit d97520c7f0
10 files changed
+34 -12

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ pub trait AsBytesRef {
fn as_bytes_ref(&self) -> &[u8];
}
impl<'a> AsBytesRef for &'a [u8] {
fn as_bytes_ref(&self) -> &[u8] { self }
}
impl AsBytesRef for [u8] {
fn as_bytes_ref(&self) -> &[u8] { &self }
}