polars_arrow::array

Trait ArrayFromIter

Source
pub trait ArrayFromIter<T>: Sized {
    // Required methods
    fn arr_from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self;
    fn try_arr_from_iter<E, I: IntoIterator<Item = Result<T, E>>>(
        iter: I,
    ) -> Result<Self, E>;

    // Provided methods
    fn arr_from_iter_trusted<I>(iter: I) -> Self
       where I: IntoIterator<Item = T>,
             I::IntoIter: TrustedLen { ... }
    fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
       where I: IntoIterator<Item = Result<T, E>>,
             I::IntoIter: TrustedLen { ... }
}

Required Methods§

Source

fn arr_from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Source

fn try_arr_from_iter<E, I: IntoIterator<Item = Result<T, E>>>( iter: I, ) -> Result<Self, E>

Provided Methods§

Source

fn arr_from_iter_trusted<I>(iter: I) -> Self
where I: IntoIterator<Item = T>, I::IntoIter: TrustedLen,

Source

fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>, I::IntoIter: TrustedLen,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§