Macro const_str::from_utf8 [−][src]
macro_rules! from_utf8 {
($s : literal) => { ... };
}
Expand description
Converts a byte string literal to a string literal
Examples
let name: &'static str = const_str::from_utf8!(b"file");
assert_eq!(name, "file");