Crates.io | proc-concat-bytes |
lib.rs | proc-concat-bytes |
version | 0.1.0 |
source | src |
created_at | 2019-02-14 14:55:51.641004 |
updated_at | 2019-02-14 14:55:51.641004 |
description | Like std::concat but for byte strings |
homepage | |
repository | https://github.com/regiontog/concat-bytes |
max_upload_size | |
id | 114745 |
size | 2,149 |
Concatenates byte literals
use proc_concat_bytes::concat_bytes;
let c_str = std::ffi::CStr::from_bytes_with_nul(&concat_bytes!(b"Hello World!", b'\0')[..]).unwrap();