2 releases
0.1.1 | Jan 12, 2021 |
---|---|
0.1.0 | Jan 10, 2021 |
#5 in #multi-byte
13KB
124 lines
Windy-macros
Macros for Windy.
Features
Converts UTF-8 &str
to:
WString
usingwstring!
orwstring_lossy!
.AString
usingastring!
orastring_lossy!
.&WStr
usingwstr!
orwstr_lossy!
.&AStr
usingastr!
orastr_lossy!
.[u8]
usingaarr!
oraarr_lossy!
.[u16]
usingwarr!
orwarr_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.
lib.rs
:
Windy-macros
Macros for Windy.
Features
Converts UTF-8 &str
to:
WString
usingwstring!
orwstring_lossy!
.AString
usingastring!
orastring_lossy!
.&WStr
usingwstr!
orwstr_lossy!
.&AStr
usingastr!
orastr_lossy!
.[u8]
usingaarr!
oraarr_lossy!
.[u16]
usingwarr!
orwarr_lossy!
.
at compile time.
License
This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.
Dependencies
~1.5MB
~36K SLoC