proc-concat-bytes

Crates.ioproc-concat-bytes
lib.rsproc-concat-bytes
version0.1.0
sourcesrc
created_at2019-02-14 14:55:51.641004
updated_at2019-02-14 14:55:51.641004
descriptionLike std::concat but for byte strings
homepage
repositoryhttps://github.com/regiontog/concat-bytes
max_upload_size
id114745
size2,149
Erlend Tobiassen (regiontog)

documentation

https://docs.rs/proc-concat-bytes/0.1.0/proc-concat-bytes/

README

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();
Commit count: 10

cargo fmt