summaryrefslogtreecommitdiff
path: root/rust/kernel/prelude.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-11-10 17:41:26 +0100
committerMiguel Ojeda <ojeda@kernel.org>2022-12-04 01:59:15 +0100
commit7c5977464681c2ec603efcac32a9432bcd355f12 (patch)
treed2afa9e25342c9e637b6ff615489974e5f58fc9f /rust/kernel/prelude.rs
parentfeadd062871704b1de2111d06008ee24a8f03d02 (diff)
downloadlinux-7c5977464681c2ec603efcac32a9432bcd355f12.tar.gz
linux-7c5977464681c2ec603efcac32a9432bcd355f12.tar.bz2
linux-7c5977464681c2ec603efcac32a9432bcd355f12.zip
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>
Diffstat (limited to 'rust/kernel/prelude.rs')
0 files changed, 0 insertions, 0 deletions