#concat #byte-string #proc

proc-concat-bytes

Like std::concat but for byte strings

1 unstable release

0.1.0 Feb 14, 2019

#32 in #concat

MIT/Apache

3KB

Crates.io api

proc-concat-bytes

Concatenates byte literals

Examples

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:

Concatenates byte literals

Examples

use proc_concat_bytes::concat_bytes;
let c_str = std::ffi::CStr::from_bytes_with_nul(&concat_bytes!(b"Hello World!", b'\0')[..]).unwrap();

Dependencies

~2MB
~48K SLoC