Macro kernel::b_str

source ·
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!");