Skip to main content

borrowed_string_column

Function borrowed_string_column 

Source
pub(crate) fn borrowed_string_column(ty: &Type) -> Option<(TokenStream, &Type)>
Expand description

The element type of a borrowed fill’s string column, with the String type it borrows from: &str for a String column, Option<&str> for an Option<String> one, None for every other column. These columns are written from the row’s own string (StringColumn, which only std::string::String implements), and Vec<&str> / Vec<Option<&str>> convert to the same character vector as the owned column.