aboutsummaryrefslogtreecommitdiffstats
path: root/rust/build_error.rs
diff options
context:
space:
mode:
authorGary Guo <[email protected]>2022-11-10 16:41:28 +0000
committerMiguel Ojeda <[email protected]>2022-12-04 00:59:15 +0000
commitd126d2380131dfbc880f5b5f0e3015e9bef6fa1c (patch)
tree72fd27366e7c043151f0cefd2eaa3880b47b1260 /rust/build_error.rs
parentrust: str: add `b_str!` macro (diff)
downloadkernel-d126d2380131dfbc880f5b5f0e3015e9bef6fa1c.tar.gz
kernel-d126d2380131dfbc880f5b5f0e3015e9bef6fa1c.zip
rust: str: add `CStr` type
Add the `CStr` type, which is a borrowed string that is guaranteed to have exactly one `NUL` byte, which is at the end. It is used for interoperability with kernel APIs that take C strings. Add it to the prelude too. Co-developed-by: Alex Gaynor <[email protected]> Signed-off-by: Alex Gaynor <[email protected]> Co-developed-by: Milan Landaverde <[email protected]> Signed-off-by: Milan Landaverde <[email protected]> Signed-off-by: Gary Guo <[email protected]> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/build_error.rs')
0 files changed, 0 insertions, 0 deletions