pub fn encode(bytes: &[u8]) -> String {
    use core::fmt::Write;
    let mut hex = String::new();
    for byte in bytes {
        write!(hex, "{:02x}", byte).unwrap()
    }
    hex
}
/// Encode some bytes as a hex String.
///
/// # Examples
/// ```
/// use secp256kfun::{ G, hex};
/// let G_hex = hex::encode(G.to_bytes().as_ref());
/// assert_eq!(G_hex, "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798");
Encode some bytes as a hex String.
Encode some bytes as a hex String .
pub fn encode(bytes: &[u8]) -> String {
    use core::fmt::Write;
    let mut hex = String::new();
    for byte in bytes {
        write!(hex, "{:02x}", byte).unwrap()
    }
    hex
}
pub fn encode ( bytes : & [ u8 ] ) -> String { use core :: fmt :: Write ; let mut hex = String :: new ( ) ; for byte in bytes { write ! ( hex " " byte ) . unwrap ( ) } hex }
Encode some bytes as a hex String.
Encode some bytes as a hex String .
bytes
&[u8]
bytes
&[u8]
examples
None