Hex

Trait Hex 

Source
pub trait Hex {
    // Required method
    fn hex(self, prefix: &str) -> String;
}
Expand description

Convert the given type to hex.

§Examples

use array_bytes::Hex;

assert_eq!(28772997619311_u128.hex("0x"), "0x1a2b3c4d5e6f");

Required Methods§

Source

fn hex(self, prefix: &str) -> String

Convert Self to hex with the given prefix.

Implementations on Foreign Types§

Source§

impl Hex for &i8

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &i16

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &i32

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &i64

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &i128

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &isize

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &u8

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &u16

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &u32

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &u64

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &u128

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &usize

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &Vec<u8>

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 1]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 2]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 3]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 4]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 5]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 6]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 7]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 8]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 9]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 10]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 11]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 12]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 13]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 14]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 15]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 16]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 17]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 18]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 19]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 20]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 21]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 22]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 23]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 24]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 25]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 26]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 27]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 28]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 29]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 30]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 31]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 32]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 33]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 34]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 35]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 36]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 37]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 38]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 39]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 40]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 41]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 42]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 43]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 44]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 45]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 46]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 47]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 48]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 49]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 50]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 51]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 52]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 53]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 54]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 55]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 56]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 57]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 58]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 59]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 60]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 61]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 62]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 63]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 64]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 128]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 256]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8; 512]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for &[u8]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for i8

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for i16

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for i32

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for i64

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for i128

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for isize

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for u8

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for u16

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for u32

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for u64

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for u128

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for usize

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for Vec<u8>

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 1]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 2]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 3]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 4]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 5]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 6]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 7]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 8]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 9]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 10]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 11]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 12]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 13]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 14]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 15]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 16]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 17]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 18]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 19]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 20]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 21]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 22]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 23]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 24]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 25]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 26]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 27]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 28]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 29]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 30]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 31]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 32]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 33]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 34]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 35]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 36]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 37]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 38]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 39]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 40]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 41]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 42]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 43]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 44]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 45]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 46]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 47]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 48]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 49]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 50]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 51]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 52]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 53]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 54]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 55]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 56]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 57]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 58]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 59]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 60]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 61]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 62]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 63]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 64]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 128]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 256]

Source§

fn hex(self, prefix: &str) -> String

Source§

impl Hex for [u8; 512]

Source§

fn hex(self, prefix: &str) -> String

Implementors§