feat: add from String implementation
parent
e400fb71bb
commit
596e20ac92
|
@ -1458,6 +1458,13 @@ impl From<&[Option<&str>]> for Column {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<&[Option<String>]> for Column {
|
||||
fn from(arr: &[Option<String>]) -> Self {
|
||||
let other = arr.iter().map(|x| x.as_deref()).collect::<Vec<_>>();
|
||||
Self::from(other.as_slice())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&[&str]> for Column {
|
||||
fn from(arr: &[&str]) -> Self {
|
||||
let data = StringEncoding::from_strs(arr);
|
||||
|
|
Loading…
Reference in New Issue