Skip to main content

refuses_modifier

Function refuses_modifier 

Source
fn refuses_modifier(modifier: Option<&BinModifier>) -> bool
Expand description

Whether a binary operation carries a modifier this compiler refuses to bind.

A scalar carries no labels, so there is nothing to match or name, and the tree’s matching has no field for a fill value: binding the operation would compute it without the modifier the query asked for. The fold and binary_operation share this test rather than restating it, because a fold that computed a constant without reading its modifier would answer a query the dispatch below refuses.