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

Function parse_since

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

Source from the content-addressed store, hash-verified

97}
98
99fn parse_since(introducer: &Ident, iter: Iter) -> Result<Expr> {
100 let paren = token::parse_paren(introducer, iter)?;
101
102 let ref mut inner = iter::new(paren.stream());
103 let bound = bound::parse(paren, inner)?;
104 token::parse_optional_punct(inner, ',');
105 token::parse_end(inner)?;
106
107 Ok(Expr::Since(bound))
108}
109
110fn parse_before(introducer: &Ident, iter: Iter) -> Result<Expr> {
111 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