rust: str: add `BStr` type
authorGary Guo <gary@garyguo.net>
Thu, 10 Nov 2022 16:41:26 +0000 (17:41 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 4 Dec 2022 00:59:15 +0000 (01:59 +0100)
commit7c5977464681c2ec603efcac32a9432bcd355f12
treed2afa9e25342c9e637b6ff615489974e5f58fc9f
parentfeadd062871704b1de2111d06008ee24a8f03d02
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>
rust/kernel/str.rs