Trait array_bytes::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§