bsv_wasm/traits/
to_hex.rs

1pub trait ToHex {
2    fn to_hex(&self) -> String;
3}
4
5impl ToHex for Vec<u8> {
6    fn to_hex(&self) -> String {
7        hex::encode(self)
8    }
9}
10
11impl ToHex for [u8] {
12    fn to_hex(&self) -> String {
13        hex::encode(self)
14    }
15}