encoding_literals

Crates.ioencoding_literals
lib.rsencoding_literals
version0.1.2
sourcesrc
created_at2015-09-21 02:57:24.5193
updated_at2015-12-15 00:03:39.936387
descriptionUTF-16 literals for Rust
homepagehttps://github.com/anurse/encoding_literals
repositoryhttps://github.com/anurse/encoding_literals
max_upload_size
id3082
size17,991
Andrew Stanton-Nurse (anurse)

documentation

README

UTF-16 literals for Rust

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");
}
Commit count: 6

cargo fmt