Skip to main content

string_bytes

Function string_bytes 

Source
pub fn string_bytes(text: &str, raw: bool) -> Option<Cow<'_, [u8]>>
Expand description

Decodes a quote-stripped string literal to the bytes it holds at runtime, covering every escape the lexer takes. None for a malformed escape.