Skip to main content

is_positive_literal

Function is_positive_literal 

Source
fn is_positive_literal(expr: &Expr<'_>) -> bool
Expand description

Whether an expression is a positive integer literal: 1, 2, never 0.