pub(crate) fn big_int_to_hex(&self, n: BigInt) -> String {
        if n == 0.into() {
            return "0x0".to_string();
        }

        let bytes = n.to_bytes_be().1;
        format!("0x{}", ::hex::encode(bytes).trim_start_matches('0'))
    }
/// Prints the module of `n` in hex.
/// Integers are encoded using the least amount of digits (no leading zero digits).
/// Their encoding may be of uneven length. The number zero encodes as "0x0".
///
/// https://godoc.org/github.com/ethereum/go-ethereum/common/hexutil#hdr-Encoding_Rules
Prints the module of `n` in hex.
Integers are encoded using the least amount of digits (no leading zero digits).
Their encoding may be of uneven length. The number zero encodes as "0x0".


Prints the module of ` n ` in hex . Integers are encoded using the least amount of digits ( no leading zero digits ) . Their encoding may be of uneven length . The number zero encodes as " 0x0 " .
pub(crate) fn big_int_to_hex(&self, n: BigInt) -> String {
        if n == 0.into() {
            return "0x0".to_string();
        }
        let bytes = n.to_bytes_be().1;
        format!("0x{}", ::hex::encode(bytes).trim_start_matches('0'))
    }
pub ( crate ) fn big_int_to_hex ( & self , n : BigInt ) -> String { if n == 0 . into ( ) { return " " . to_string ( ) ; } let bytes = n . to_bytes_be ( ) . 1 ; format ! ( " " hex encode ( bytes ) trim_start_matches ( '0' ) ) }
Prints the module of `n` in hex.
Prints the module of ` n ` in hex .
&self
n
BigInt
&self
n
BigInt