Expand description
Encoding and decoding emoji256 strings.
For most cases, you can simply use the decode and encode functions.
If you need a bit more control, use the traits ToEmoji256 and FromEmoji256 instead.
ยงExample
let hello_world = emoji256::encode("Hello world!");
println!("{}", hello_world); // Prints "๐๐ฝ๐๐๐๐ญ๐ฆ๐๐๐๐ป๐ฐ"Re-exportsยง
pub use crate::serde::deserialize;serdepub use crate::serde::serialize;allocandserde
Modulesยง
- serde
serde - Emoji256 encoding with
serde.
Enumsยง
- From
Emoji256 Error - The error type for decoding a emoji256 string into
Vec<u8>or[u8; N].
Traitsยง
- From
Emoji256 - Types that can be decoded from a emoji256 string.
- ToEmoji256
- Encoding values as emoji256 string.
Functionsยง
- decode
alloc - Decodes a emoji256 string into raw bytes.
- decode_
to_ slice - Decode a emoji256 string into a mutable bytes slice.
- encode
alloc - Encodes
dataas emoji256 string. - encode_
to_ slice - Encodes some bytes into a mutable slice of bytes.