takubokudori / windy-macros

Windy macros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windy-macros

crates.io docs.rs

Macros for Windy.

Features

Converts UTF-8 &str to:

  • WString using wstring! or wstring_lossy!.
  • AString using astring! or astring_lossy!.
  • &WStr using wstr! or wstr_lossy!.
  • &AStr using astr! or astr_lossy!.
  • [u8] using aarr! or aarr_lossy!.
  • [u16] using warr! or warr_lossy!.

at compile time.

Example

use windy::WString;
use windy::macros::wstring;

fn main() {
    let x: WString = wstring!("test");
}

License

This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.

About

Windy macros

License:Apache License 2.0


Languages

Language:Rust 100.0%