Function syntax::ext::base::get_single_str_from_ttsUnstable [-] [+] [src]

pub fn get_single_str_from_tts(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree], name: &str) -> Option<String>

Extract the string literal from the first token of tts. If this is not a string literal, emit an error and return None.