Skip to main content

yields_value

Function yields_value 

Source
fn yields_value(branch: &Block) -> bool
Expand description

Whether a branch ends in a value (if c { f().await } else { x }), which cannot be moved into a hoisted chain. Loops and ifs without else at the end are statements of type ().