Function syntax::ext::base::get_single_str_from_tts [] [src]

pub fn get_single_str_from_tts(cx: &mut ExtCtxt,
                               sp: Span,
                               tts: &[TokenTree],
                               name: &str)
                               -> Option<String>
🔬 This is a nightly-only experimental API. (rustc_private)

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