Macro kernel::b_str[][src]

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: &'static BStr = b_str!("My awesome BStr!");