Skip to main content

MAX_EXPRESSION_LEN

Constant MAX_EXPRESSION_LEN 

Source
pub const MAX_EXPRESSION_LEN: usize = 512;
Expand description

The maximum length, in Unicode scalar values, of a condition expression.

Enforced at parse before any work, so an over-long string is rejected with a precise error and never lexed. The cap is what bounds the AST size, which in turn bounds eval time.