diff options
author | Gary Guo <gary@garyguo.net> | 2022-11-10 17:41:29 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2022-12-04 01:59:15 +0100 |
commit | c07e67bd2daf99de923b6fd927ab8c18e0f57b05 (patch) | |
tree | a00b2bf56e96c9ce0598287b2c4142bcb978bc2e /certs/blacklist.c | |
parent | d126d2380131dfbc880f5b5f0e3015e9bef6fa1c (diff) | |
download | lwn-c07e67bd2daf99de923b6fd927ab8c18e0f57b05.tar.gz lwn-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 <alex.gaynor@gmail.com>
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-developed-by: Morgan Bartlett <mjmouse9999@gmail.com>
Signed-off-by: Morgan Bartlett <mjmouse9999@gmail.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'certs/blacklist.c')
0 files changed, 0 insertions, 0 deletions