| Crates.io | encoding_literals |
| lib.rs | encoding_literals |
| version | 0.1.2 |
| created_at | 2015-09-21 02:57:24.5193+00 |
| updated_at | 2015-12-15 00:03:39.936387+00 |
| description | UTF-16 literals for Rust |
| homepage | https://github.com/anurse/encoding_literals |
| repository | https://github.com/anurse/encoding_literals |
| max_upload_size | |
| id | 3082 |
| size | 17,991 |
This crate provides a plugin that allows you to add UTF-16 string literals to your Rust code.
Example:
#![plugin(encoding_literals)]
pub fn something() {
// The type of this variable will be [u8; N] where N is the length of the UTF-16 encoded sequence in bytes.
let utf_literal = utf16!("This string will be a UTF-16 byte sequence");
}