Skip to main content

array_in

Function array_in 

Source
pub fn array_in<T>(
    s: &str,
    delim: u8,
    array_nulls: bool,
    element: impl FnMut(&str) -> Result<T, TypeError>,
) -> Result<Array<T>, TypeError>
Expand description

The text input of an array: {1,2,3}, {{1,2},{3,4}} or [0:1]={a,b}. delim is the typdelim of the element type, and array_nulls is the setting of the same name: when it is off, an unquoted NULL is the string and not a null. element is the input function of the element type. It does not get the null elements.