minijinja::tests

Function is_mapping

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

Checks if this value is a mapping

{{ {"foo": "bar"} is mapping }} -> true
{{ [1, 2, 3] is mapping }} -> false