macro_rules! b_str {
    ($str:literal) => { ... };
}
Expand description

Creates a new BStr from a string literal.

b_str! converts the supplied string literal to byte string, so non-ASCII characters can be included.

Examples

const MY_BSTR: &BStr = b_str!("My awesome BStr!");
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.