Function parser_database::coerce_array
source · pub fn coerce_array<'a, T>(
expr: &'a Expression,
coercion: &dyn Fn(&'a Expression, &mut Diagnostics) -> Option<T>,
diagnostics: &mut Diagnostics
) -> Option<Vec<T>>
Expand description
Coerce an expression to an array. The coercion function is used to coerce the array elements.