]> git.lizzy.rs Git - rust.git/commit
Add methods to go from a nul-terminated Vec<u8> to a CString, checked and unchecked.
authorAlexis Bourget <alexis.bourget@gmail.com>
Mon, 8 Jun 2020 16:31:45 +0000 (18:31 +0200)
committerAlexis Bourget <alexis.bourget@gmail.com>
Mon, 8 Jun 2020 16:38:48 +0000 (18:38 +0200)
commit496818ccd79e9bc093552887c923168defb13c6c
tree47098b8fa28958f0c0e0c6ff0205f24107963c5f
parent73558160933b2764ed9a84b1b2b647e128eac3f8
Add methods to go from a nul-terminated Vec<u8> to a CString, checked and unchecked.

Doc tests have been written and the documentation on the error type
updated too.
src/libstd/ffi/c_str.rs