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
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Extract the string literal from the first token of tts
. If this
is not a string literal, emit an error and return None.