Crates.io | windy-macros |
lib.rs | windy-macros |
version | 0.1.1 |
source | src |
created_at | 2021-01-10 19:21:35.446385 |
updated_at | 2021-01-12 15:37:56.246584 |
description | Macros to convert a UTF-8 string to WString or AString at compile time |
homepage | https://github.com/takubokudori/windy-macros |
repository | https://github.com/takubokudori/windy-macros |
max_upload_size | |
id | 339275 |
size | 32,581 |
Macros for Windy.
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.
use windy::WString;
use windy::macros::wstring;
fn main() {
let x: WString = wstring!("test");
}
This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.