[−][src]Crate hex_noalloc
Encoding and decoding hex strings.
For most cases, you can simply use the decode(), encode() and
encode_upper() functions. If you need a bit more control, use the traits
ToHex and FromHex instead.
Example
extern crate hex; #[cfg(feature = "std")] fn main() { let hex_string = hex::encode("Hello world!"); println!("{}", hex_string); // Prints '48656c6c6f20776f726c6421' } #[cfg(not(feature = "std"))] fn main() { }
Enums
| FromHexError | The error type for decoding a hex string into |
Traits
| FromHex | Types that can be decoded from a hex string. |
| ToHex | Encoding values as hex string. |
Functions
| decode | Decodes a hex string into raw bytes. |
| decode_to_slice | Decode a hex string into a mutable bytes slice. |
| encode | Encodes |
| encode_upper | Encodes |