diff options
author | Gary Guo <gary@garyguo.net> | 2022-11-10 19:41:27 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2022-12-04 03:59:15 +0300 |
commit | 650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (patch) | |
tree | 6ecbba36daeb21d8ede719688995c7205e17f8ba /sound | |
parent | 7c5977464681c2ec603efcac32a9432bcd355f12 (diff) | |
download | linux-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.tar.xz |
rust: str: add `b_str!` macro
Add the `b_str!` macro, which creates a new `BStr` from
a string literal.
It is usable in const contexts, for instance:
const X: &BStr = b_str!("Example");
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 'sound')
0 files changed, 0 insertions, 0 deletions