Expand description
This module contains functions that retrieve specific elements.
Structs§
- ForLoop
- The essential nodes of a desugared for loop as well as the entire span:
for pat in arg { body }becomes(pat, arg, body). Returns(pat, arg, body, span). - If
- An
ifexpression withoutlet - IfLet
- An
if letexpression - IfOr
IfLet - An
iforif letexpression - Range
- Represent a range akin to
ast::ExprKind::Range. - While
- A desugared
whileloop - While
Let - A desugared
while letloop
Enums§
- IfLet
OrMatch - An
if letormatchexpression. Useful for lints that trigger on one or the other. - VecArgs
- Represents the pre-expansion arguments of a
vec!invocation. - VecInit
Kind - A parsed
Vecinitialization expression
Functions§
- binop
- Converts a
hirbinary operator to the correspondingasttype. - get_
vec_ init_ kind - Checks if the given expression is an initialization of
Vecand returns its kind. - has_
let_ expr - Checks that a condition doesn’t have a
letexpression, to keepIfandWhilefrom acceptingif letandwhile let.