diff options
author | Gary Guo <[email protected]> | 2022-11-10 17:41:29 +0100 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2022-12-04 01:59:15 +0100 |
commit | c07e67bd2daf99de923b6fd927ab8c18e0f57b05 (patch) | |
tree | a00b2bf56e96c9ce0598287b2c4142bcb978bc2e /include/linux/overflow.h | |
parent | d126d2380131dfbc880f5b5f0e3015e9bef6fa1c (diff) |
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 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions