Skip to main content

from_value_array

Function from_value_array 

Source
pub fn from_value_array<T: FromValue>(v: Value) -> Result<Vec<T>>
Expand description

Read a Value::Array element-wise.

A free function rather than impl FromValue for Vec<T>, which would collide with Vec<u8> = Value::Bytes. Same asymmetry as Value::array, for the same reason.