vls_common/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]

extern crate alloc;

use alloc::string::String;

pub trait HexEncode {
    fn to_hex(&self) -> String;
}

impl<T: hex::ToHex> HexEncode for T {
    fn to_hex(&self) -> String {
        self.encode_hex()
    }
}