Trait hex::FromHex [−][src]
pub trait FromHex: Sized { type Error; fn from_hex<T: AsRef<[u8]>>(hex: T) -> Result<Self, Self::Error>; }
Types that can be decoded from a hex string.
This trait is implemented for Vec<u8>
and small u8
-arrays.
Example
use core::str; use hex::FromHex; let buffer = <[u8; 12]>::from_hex("48656c6c6f20776f726c6421")?; let string = str::from_utf8(&buffer).expect("invalid buffer length"); println!("{}", string); // prints "Hello world!"
Associated Types
Loading content...Required methods
fn from_hex<T: AsRef<[u8]>>(hex: T) -> Result<Self, Self::Error>
[src]
Creates an instance of type Self
from the given hex string, or fails
with a custom error type.
Both, upper and lower case characters are valid and can even be
mixed (e.g. f9b4ca
, F9B4CA
and f9B4Ca
are all valid strings).
Implementations on Foreign Types
impl FromHex for Vec<u8>
[src]
impl FromHex for Vec<u8>
[src]impl FromHex for [u8; 1]
[src]
impl FromHex for [u8; 1]
[src]impl FromHex for [u8; 2]
[src]
impl FromHex for [u8; 2]
[src]impl FromHex for [u8; 3]
[src]
impl FromHex for [u8; 3]
[src]impl FromHex for [u8; 4]
[src]
impl FromHex for [u8; 4]
[src]impl FromHex for [u8; 5]
[src]
impl FromHex for [u8; 5]
[src]impl FromHex for [u8; 6]
[src]
impl FromHex for [u8; 6]
[src]impl FromHex for [u8; 7]
[src]
impl FromHex for [u8; 7]
[src]impl FromHex for [u8; 8]
[src]
impl FromHex for [u8; 8]
[src]impl FromHex for [u8; 9]
[src]
impl FromHex for [u8; 9]
[src]impl FromHex for [u8; 10]
[src]
impl FromHex for [u8; 10]
[src]impl FromHex for [u8; 11]
[src]
impl FromHex for [u8; 11]
[src]impl FromHex for [u8; 12]
[src]
impl FromHex for [u8; 12]
[src]impl FromHex for [u8; 13]
[src]
impl FromHex for [u8; 13]
[src]impl FromHex for [u8; 14]
[src]
impl FromHex for [u8; 14]
[src]impl FromHex for [u8; 15]
[src]
impl FromHex for [u8; 15]
[src]impl FromHex for [u8; 16]
[src]
impl FromHex for [u8; 16]
[src]impl FromHex for [u8; 17]
[src]
impl FromHex for [u8; 17]
[src]impl FromHex for [u8; 18]
[src]
impl FromHex for [u8; 18]
[src]impl FromHex for [u8; 19]
[src]
impl FromHex for [u8; 19]
[src]impl FromHex for [u8; 20]
[src]
impl FromHex for [u8; 20]
[src]impl FromHex for [u8; 21]
[src]
impl FromHex for [u8; 21]
[src]impl FromHex for [u8; 22]
[src]
impl FromHex for [u8; 22]
[src]impl FromHex for [u8; 23]
[src]
impl FromHex for [u8; 23]
[src]impl FromHex for [u8; 24]
[src]
impl FromHex for [u8; 24]
[src]impl FromHex for [u8; 25]
[src]
impl FromHex for [u8; 25]
[src]impl FromHex for [u8; 26]
[src]
impl FromHex for [u8; 26]
[src]impl FromHex for [u8; 27]
[src]
impl FromHex for [u8; 27]
[src]impl FromHex for [u8; 28]
[src]
impl FromHex for [u8; 28]
[src]impl FromHex for [u8; 29]
[src]
impl FromHex for [u8; 29]
[src]impl FromHex for [u8; 30]
[src]
impl FromHex for [u8; 30]
[src]impl FromHex for [u8; 31]
[src]
impl FromHex for [u8; 31]
[src]impl FromHex for [u8; 32]
[src]
impl FromHex for [u8; 32]
[src]impl FromHex for [u8; 33]
[src]
impl FromHex for [u8; 33]
[src]impl FromHex for [u8; 34]
[src]
impl FromHex for [u8; 34]
[src]impl FromHex for [u8; 35]
[src]
impl FromHex for [u8; 35]
[src]impl FromHex for [u8; 36]
[src]
impl FromHex for [u8; 36]
[src]impl FromHex for [u8; 37]
[src]
impl FromHex for [u8; 37]
[src]impl FromHex for [u8; 38]
[src]
impl FromHex for [u8; 38]
[src]impl FromHex for [u8; 39]
[src]
impl FromHex for [u8; 39]
[src]impl FromHex for [u8; 40]
[src]
impl FromHex for [u8; 40]
[src]impl FromHex for [u8; 41]
[src]
impl FromHex for [u8; 41]
[src]impl FromHex for [u8; 42]
[src]
impl FromHex for [u8; 42]
[src]impl FromHex for [u8; 43]
[src]
impl FromHex for [u8; 43]
[src]impl FromHex for [u8; 44]
[src]
impl FromHex for [u8; 44]
[src]impl FromHex for [u8; 45]
[src]
impl FromHex for [u8; 45]
[src]impl FromHex for [u8; 46]
[src]
impl FromHex for [u8; 46]
[src]impl FromHex for [u8; 47]
[src]
impl FromHex for [u8; 47]
[src]impl FromHex for [u8; 48]
[src]
impl FromHex for [u8; 48]
[src]impl FromHex for [u8; 49]
[src]
impl FromHex for [u8; 49]
[src]impl FromHex for [u8; 50]
[src]
impl FromHex for [u8; 50]
[src]impl FromHex for [u8; 51]
[src]
impl FromHex for [u8; 51]
[src]impl FromHex for [u8; 52]
[src]
impl FromHex for [u8; 52]
[src]impl FromHex for [u8; 53]
[src]
impl FromHex for [u8; 53]
[src]impl FromHex for [u8; 54]
[src]
impl FromHex for [u8; 54]
[src]impl FromHex for [u8; 55]
[src]
impl FromHex for [u8; 55]
[src]impl FromHex for [u8; 56]
[src]
impl FromHex for [u8; 56]
[src]impl FromHex for [u8; 57]
[src]
impl FromHex for [u8; 57]
[src]impl FromHex for [u8; 58]
[src]
impl FromHex for [u8; 58]
[src]impl FromHex for [u8; 59]
[src]
impl FromHex for [u8; 59]
[src]impl FromHex for [u8; 60]
[src]
impl FromHex for [u8; 60]
[src]impl FromHex for [u8; 61]
[src]
impl FromHex for [u8; 61]
[src]impl FromHex for [u8; 62]
[src]
impl FromHex for [u8; 62]
[src]impl FromHex for [u8; 63]
[src]
impl FromHex for [u8; 63]
[src]impl FromHex for [u8; 64]
[src]
impl FromHex for [u8; 64]
[src]impl FromHex for [u8; 65]
[src]
impl FromHex for [u8; 65]
[src]impl FromHex for [u8; 66]
[src]
impl FromHex for [u8; 66]
[src]impl FromHex for [u8; 67]
[src]
impl FromHex for [u8; 67]
[src]impl FromHex for [u8; 68]
[src]
impl FromHex for [u8; 68]
[src]impl FromHex for [u8; 69]
[src]
impl FromHex for [u8; 69]
[src]impl FromHex for [u8; 70]
[src]
impl FromHex for [u8; 70]
[src]impl FromHex for [u8; 71]
[src]
impl FromHex for [u8; 71]
[src]impl FromHex for [u8; 72]
[src]
impl FromHex for [u8; 72]
[src]impl FromHex for [u8; 73]
[src]
impl FromHex for [u8; 73]
[src]impl FromHex for [u8; 74]
[src]
impl FromHex for [u8; 74]
[src]impl FromHex for [u8; 75]
[src]
impl FromHex for [u8; 75]
[src]impl FromHex for [u8; 76]
[src]
impl FromHex for [u8; 76]
[src]impl FromHex for [u8; 77]
[src]
impl FromHex for [u8; 77]
[src]impl FromHex for [u8; 78]
[src]
impl FromHex for [u8; 78]
[src]impl FromHex for [u8; 79]
[src]
impl FromHex for [u8; 79]
[src]impl FromHex for [u8; 80]
[src]
impl FromHex for [u8; 80]
[src]impl FromHex for [u8; 81]
[src]
impl FromHex for [u8; 81]
[src]impl FromHex for [u8; 82]
[src]
impl FromHex for [u8; 82]
[src]impl FromHex for [u8; 83]
[src]
impl FromHex for [u8; 83]
[src]impl FromHex for [u8; 84]
[src]
impl FromHex for [u8; 84]
[src]impl FromHex for [u8; 85]
[src]
impl FromHex for [u8; 85]
[src]impl FromHex for [u8; 86]
[src]
impl FromHex for [u8; 86]
[src]impl FromHex for [u8; 87]
[src]
impl FromHex for [u8; 87]
[src]impl FromHex for [u8; 88]
[src]
impl FromHex for [u8; 88]
[src]impl FromHex for [u8; 89]
[src]
impl FromHex for [u8; 89]
[src]impl FromHex for [u8; 90]
[src]
impl FromHex for [u8; 90]
[src]impl FromHex for [u8; 91]
[src]
impl FromHex for [u8; 91]
[src]impl FromHex for [u8; 92]
[src]
impl FromHex for [u8; 92]
[src]impl FromHex for [u8; 93]
[src]
impl FromHex for [u8; 93]
[src]impl FromHex for [u8; 94]
[src]
impl FromHex for [u8; 94]
[src]impl FromHex for [u8; 95]
[src]
impl FromHex for [u8; 95]
[src]impl FromHex for [u8; 96]
[src]
impl FromHex for [u8; 96]
[src]impl FromHex for [u8; 97]
[src]
impl FromHex for [u8; 97]
[src]impl FromHex for [u8; 98]
[src]
impl FromHex for [u8; 98]
[src]impl FromHex for [u8; 99]
[src]
impl FromHex for [u8; 99]
[src]impl FromHex for [u8; 100]
[src]
impl FromHex for [u8; 100]
[src]impl FromHex for [u8; 101]
[src]
impl FromHex for [u8; 101]
[src]impl FromHex for [u8; 102]
[src]
impl FromHex for [u8; 102]
[src]impl FromHex for [u8; 103]
[src]
impl FromHex for [u8; 103]
[src]impl FromHex for [u8; 104]
[src]
impl FromHex for [u8; 104]
[src]impl FromHex for [u8; 105]
[src]
impl FromHex for [u8; 105]
[src]impl FromHex for [u8; 106]
[src]
impl FromHex for [u8; 106]
[src]impl FromHex for [u8; 107]
[src]
impl FromHex for [u8; 107]
[src]impl FromHex for [u8; 108]
[src]
impl FromHex for [u8; 108]
[src]impl FromHex for [u8; 109]
[src]
impl FromHex for [u8; 109]
[src]impl FromHex for [u8; 110]
[src]
impl FromHex for [u8; 110]
[src]impl FromHex for [u8; 111]
[src]
impl FromHex for [u8; 111]
[src]impl FromHex for [u8; 112]
[src]
impl FromHex for [u8; 112]
[src]impl FromHex for [u8; 113]
[src]
impl FromHex for [u8; 113]
[src]impl FromHex for [u8; 114]
[src]
impl FromHex for [u8; 114]
[src]impl FromHex for [u8; 115]
[src]
impl FromHex for [u8; 115]
[src]impl FromHex for [u8; 116]
[src]
impl FromHex for [u8; 116]
[src]impl FromHex for [u8; 117]
[src]
impl FromHex for [u8; 117]
[src]impl FromHex for [u8; 118]
[src]
impl FromHex for [u8; 118]
[src]impl FromHex for [u8; 119]
[src]
impl FromHex for [u8; 119]
[src]impl FromHex for [u8; 120]
[src]
impl FromHex for [u8; 120]
[src]impl FromHex for [u8; 121]
[src]
impl FromHex for [u8; 121]
[src]impl FromHex for [u8; 122]
[src]
impl FromHex for [u8; 122]
[src]impl FromHex for [u8; 123]
[src]
impl FromHex for [u8; 123]
[src]impl FromHex for [u8; 124]
[src]
impl FromHex for [u8; 124]
[src]impl FromHex for [u8; 125]
[src]
impl FromHex for [u8; 125]
[src]impl FromHex for [u8; 126]
[src]
impl FromHex for [u8; 126]
[src]impl FromHex for [u8; 127]
[src]
impl FromHex for [u8; 127]
[src]impl FromHex for [u8; 128]
[src]
impl FromHex for [u8; 128]
[src]impl FromHex for [u8; 160]
[src]
impl FromHex for [u8; 160]
[src]impl FromHex for [u8; 192]
[src]
impl FromHex for [u8; 192]
[src]impl FromHex for [u8; 200]
[src]
impl FromHex for [u8; 200]
[src]impl FromHex for [u8; 224]
[src]
impl FromHex for [u8; 224]
[src]impl FromHex for [u8; 256]
[src]
impl FromHex for [u8; 256]
[src]impl FromHex for [u8; 384]
[src]
impl FromHex for [u8; 384]
[src]impl FromHex for [u8; 512]
[src]
impl FromHex for [u8; 512]
[src]impl FromHex for [u8; 768]
[src]
impl FromHex for [u8; 768]
[src]impl FromHex for [u8; 1024]
[src]
impl FromHex for [u8; 1024]
[src]impl FromHex for [u8; 2048]
[src]
impl FromHex for [u8; 2048]
[src]impl FromHex for [u8; 4096]
[src]
impl FromHex for [u8; 4096]
[src]impl FromHex for [u8; 8192]
[src]
impl FromHex for [u8; 8192]
[src]impl FromHex for [u8; 16384]
[src]
impl FromHex for [u8; 16384]
[src]impl FromHex for [u8; 32768]
[src]
impl FromHex for [u8; 32768]
[src]impl FromHex for [u8; 65536]
[src]
impl FromHex for [u8; 65536]
[src]impl FromHex for [u8; 131072]
[src]
impl FromHex for [u8; 131072]
[src]impl FromHex for [u8; 262144]
[src]
impl FromHex for [u8; 262144]
[src]impl FromHex for [u8; 524288]
[src]
impl FromHex for [u8; 524288]
[src]impl FromHex for [u8; 1048576]
[src]
impl FromHex for [u8; 1048576]
[src]impl FromHex for [u8; 2097152]
[src]
impl FromHex for [u8; 2097152]
[src]impl FromHex for [u8; 4194304]
[src]
impl FromHex for [u8; 4194304]
[src]impl FromHex for [u8; 8388608]
[src]
impl FromHex for [u8; 8388608]
[src]impl FromHex for [u8; 16777216]
[src]
impl FromHex for [u8; 16777216]
[src]impl FromHex for [u8; 33554432]
[src]
impl FromHex for [u8; 33554432]
[src]impl FromHex for [u8; 67108864]
[src]
impl FromHex for [u8; 67108864]
[src]impl FromHex for [u8; 134217728]
[src]
impl FromHex for [u8; 134217728]
[src]impl FromHex for [u8; 268435456]
[src]
impl FromHex for [u8; 268435456]
[src]impl FromHex for [u8; 536870912]
[src]
impl FromHex for [u8; 536870912]
[src]impl FromHex for [u8; 1073741824]
[src]
impl FromHex for [u8; 1073741824]
[src]impl FromHex for [u8; 2147483648]
[src]
impl FromHex for [u8; 2147483648]
[src]impl FromHex for [u8; 4294967296]
[src]
impl FromHex for [u8; 4294967296]
[src]