Crate emoji256

source ·
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

Modules

  • serdeserde
    Emoji256 encoding with serde.

Enums

  • The error type for decoding a emoji256 string into Vec<u8> or [u8; N].

Traits

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.