rocket_dyn_templates::minijinja::tests

Function is_integer

Source
pub fn is_integer(v: Value) -> bool
Expand description

Checks if this value is an integer.

{{ 42 is integer }} -> true
{{ 42.0 is integer }} -> false