WSL2-Linux-Kernel/rust/kernel
Gary Guo 7c59774646 rust: str: add `BStr` type
Add the `BStr` type, which is a byte string without UTF-8
validity guarantee.

It is simply an alias to `[u8]`, but has a more evident
semantical meaning.

Signed-off-by: Gary Guo <gary@garyguo.net>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2022-12-04 01:59:15 +01:00
..
allocator.rs rust: add `kernel` crate 2022-09-28 08:58:24 +02:00
error.rs rust: error: add `From` implementations for `Error` 2022-12-04 01:59:15 +01:00
lib.rs rust: error: add `From` implementations for `Error` 2022-12-04 01:59:15 +01:00
prelude.rs rust: prelude: add `error::code::*` constant items 2022-12-04 01:59:15 +01:00
print.rs rust: print: add `pr_cont!` macro 2022-12-01 20:12:44 +01:00
str.rs rust: str: add `BStr` type 2022-12-04 01:59:15 +01:00