Trait polars_core::datatypes::ArrayFromIter
pub trait ArrayFromIter<T>: Sized {
// Required methods
fn arr_from_iter<I>(iter: I) -> Self
where I: IntoIterator<Item = T>;
fn try_arr_from_iter<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>;
// Provided methods
fn arr_from_iter_trusted<I>(iter: I) -> Self
where I: IntoIterator<Item = T>,
<I as IntoIterator>::IntoIter: TrustedLen { ... }
fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>,
<I as IntoIterator>::IntoIter: TrustedLen { ... }
}
Required Methods§
fn arr_from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn try_arr_from_iter<E, I>(iter: I) -> Result<Self, E>where
I: IntoIterator<Item = Result<T, E>>,
Provided Methods§
fn arr_from_iter_trusted<I>(iter: I) -> Self
fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
Object Safety§
This trait is not object safe.
Implementors§
impl ArrayFromIter<Option<bool>> for BooleanArray
impl ArrayFromIter<Option<()>> for StructArray
impl ArrayFromIter<bool> for BooleanArray
impl ArrayFromIter<()> for StructArray
impl<'a, T: PolarsObject> ArrayFromIter<Option<&'a T>> for ObjectArray<T>
Available on crate feature
object
only.impl<'a, T: PolarsObject> ArrayFromIter<&'a T> for ObjectArray<T>
Available on crate feature
object
only.