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

Function parse_before

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

Source from the content-addressed store, hash-verified

108}
109
110fn parse_before(introducer: &Ident, iter: Iter) -> Result<Expr> {
111 let paren = token::parse_paren(introducer, iter)?;
112
113 let ref mut inner = iter::new(paren.stream());
114 let bound = bound::parse(paren, inner)?;
115 token::parse_optional_punct(inner, ',');
116 token::parse_end(inner)?;
117
118 Ok(Expr::Before(bound))
119}
120
121fn parse_not(introducer: &Ident, iter: Iter) -> Result<Expr> {
122 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