1#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
2
3extern crate alloc;
4
5use alloc::string::String;
6
7pub trait HexEncode {
8 fn to_hex(&self) -> String;
9}
10
11impl<T: hex::ToHex> HexEncode for T {
12 fn to_hex(&self) -> String {
13 self.encode_hex()
14 }
15}