Skip to main content

length

Function length 

Source
pub fn length(v: &Value) -> Result<usize, Error>
Expand description

Returns the “length” of the value

By default this filter is also registered under the alias count. Like in Jinja2, undefined values have a length of 0 unless strict undefined behavior is used.

<p>Search results: {{ results|length }}