aboutsummaryrefslogtreecommitdiffstats
path: root/rust/build_error.rs
diff options
context:
space:
mode:
authorGary Guo <[email protected]>2022-11-10 16:41:29 +0000
committerMiguel Ojeda <[email protected]>2022-12-04 00:59:15 +0000
commitc07e67bd2daf99de923b6fd927ab8c18e0f57b05 (patch)
treea00b2bf56e96c9ce0598287b2c4142bcb978bc2e /rust/build_error.rs
parentrust: str: add `CStr` type (diff)
downloadkernel-c07e67bd2daf99de923b6fd927ab8c18e0f57b05.tar.gz
kernel-c07e67bd2daf99de923b6fd927ab8c18e0f57b05.zip
rust: str: implement several traits for `CStr`
Implement `Debug`, `Display`, `Deref` (into `BStr`), `AsRef<BStr>` and a set of `Index<...>` traits. This makes it `CStr` more convenient to use (and closer to `str`). Co-developed-by: Alex Gaynor <[email protected]> Signed-off-by: Alex Gaynor <[email protected]> Co-developed-by: Morgan Bartlett <[email protected]> Signed-off-by: Morgan Bartlett <[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