Skip to main content

expr_ends_with_dot

Function expr_ends_with_dot 

Source
fn expr_ends_with_dot(expr: &Expr) -> bool
Expand description

Returns true if the printed representation of this expression ends with a . character — specifically, an unsuffixed float literal like 0. or 45.. This is used to insert whitespace before range operators (.., ..=) so that the dots don’t merge (e.g. 0. ..45. instead of 0...45.).