hypersync-format 0.7.0

evm format library
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Result;

pub trait Hex: Sized {
    fn encode_hex(&self) -> String;
    fn decode_hex(hex: &str) -> Result<Self>;

    fn encode_hex_with_quotes(&self) -> String {
        format!("\"{}\"", self.encode_hex())
    }
}