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;
pub use crate::serde::serialize;
Modules
- serde
serde
Emoji256 encoding withserde
.
Enums
- The error type for decoding a emoji256 string into
Vec<u8>
or[u8; N]
.
Traits
- Types that can be decoded from a emoji256 string.
- Encoding values as emoji256 string.
Functions
- Decodes a emoji256 string into raw bytes.
- Decode a emoji256 string into a mutable bytes slice.
- Encodes
data
as emoji256 string. - Encodes some bytes into a mutable slice of bytes.