MCPcopy Create free account
hub / github.com/dtolnay/rustversion / parse_not

Function parse_not

src/expr.rs:121–130  ·  view source on GitHub ↗
(introducer: &Ident, iter: Iter)

Source from the content-addressed store, hash-verified

119}
120
121fn parse_not(introducer: &Ident, iter: Iter) -> Result<Expr> {
122 let paren = token::parse_paren(introducer, iter)?;
123
124 let ref mut inner = iter::new(paren.stream());
125 let expr = self::parse(inner)?;
126 token::parse_optional_punct(inner, ',');
127 token::parse_end(inner)?;
128
129 Ok(Expr::Not(Box::new(expr)))
130}
131
132fn parse_any(introducer: &Ident, iter: Iter) -> Result<Expr> {
133 let paren = token::parse_paren(introducer, iter)?;

Callers 1

parseFunction · 0.85

Calls 5

parse_parenFunction · 0.85
newFunction · 0.85
parse_optional_punctFunction · 0.85
parse_endFunction · 0.85
parseFunction · 0.70

Tested by

no test coverage detected