1 个不稳定版本
| 0.1.0 | 2019年2月14日 |
|---|
#29 在 #concat
3KB
proc-concat-bytes
连接字节字面量
示例
use proc_concat_bytes::concat_bytes;
let c_str = std::ffi::CStr::from_bytes_with_nul(&concat_bytes!(b"Hello World!", b'\0')[..]).unwrap();
lib.rs:
连接字节字面量
示例
use proc_concat_bytes::concat_bytes;
let c_str = std::ffi::CStr::from_bytes_with_nul(&concat_bytes!(b"Hello World!", b'\0')[..]).unwrap();
依赖
~2MB
~46K SLoC