Function rocket_dyn_templates::minijinja::tests::is_eq

source ·
pub fn is_eq(value: &Value, other: &Value) -> bool
Expand description

Test version of ==.

This is useful when combined with select.

{{ 1 is eq 1 }} -> true
{{ [1, 2, 3]|select("==", 1) }} => [1]

By default aliased to equalto and ==.