Skip to main content

value_to_vector

Function value_to_vector 

Source
pub fn value_to_vector(v: &Value) -> Result<Vec<f32>>
Expand description

Coerce a Value into a Vec<f32> if it is a homogeneous numeric list (used to read vector literals from ARRAY[...] or $N Vector params).