Function syntax::ext::tt::quoted::parse_kleene_op [−][src]
fn parse_kleene_op<I>(
input: &mut I,
span: Span
) -> Result<Result<KleeneOp, (Token, Span)>, Span> where
I: Iterator<Item = TokenTree>,
🔬 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?
Parse the next token tree of the input looking for a KleeneOp. Returns
- Ok(Ok(op)) if the next token tree is a KleeneOp
- Ok(Err(tok, span)) if the next token tree is a token but not a KleeneOp
- Err(span) if the next token tree is not a token