Trait ArrayFromIter

Source
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§

Source

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

Source

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

Provided Methods§

Source

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

Source

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,

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.

Implementations on Foreign Types§

Source§

impl<'a, T> ArrayFromIter<Option<&'a T>> for ObjectArray<T>
where T: PolarsObject,

Source§

fn arr_from_iter<I>(iter: I) -> ObjectArray<T>
where I: IntoIterator<Item = Option<&'a T>>,

Source§

fn try_arr_from_iter<E, I>(iter: I) -> Result<ObjectArray<T>, E>
where I: IntoIterator<Item = Result<Option<&'a T>, E>>,

Source§

impl<'a, T> ArrayFromIter<&'a T> for ObjectArray<T>
where T: PolarsObject,

Source§

fn arr_from_iter<I>(iter: I) -> ObjectArray<T>
where I: IntoIterator<Item = &'a T>,

Source§

fn try_arr_from_iter<E, I>(iter: I) -> Result<ObjectArray<T>, E>
where I: IntoIterator<Item = Result<&'a T, E>>,

Implementors§

Source§

impl ArrayFromIter<Option<bool>> for BooleanArray

Source§

impl ArrayFromIter<Option<()>> for StructArray

Source§

impl ArrayFromIter<bool> for BooleanArray

Source§

impl ArrayFromIter<()> for StructArray

Source§

impl<T> ArrayFromIter<Option<T>> for BinaryArray<i64>
where T: IntoBytes,

Source§

impl<T> ArrayFromIter<Option<T>> for BinaryViewArrayGeneric<str>
where T: StrIntoBytes,

Source§

impl<T> ArrayFromIter<Option<T>> for BinaryViewArrayGeneric<[u8]>
where T: IntoBytes,

Source§

impl<T> ArrayFromIter<Option<T>> for ListArray<i64>
where T: AsArray,

Source§

impl<T> ArrayFromIter<Option<T>> for PrimitiveArray<T>
where T: NativeType,

Source§

impl<T> ArrayFromIter<Option<T>> for Utf8Array<i64>
where T: StrIntoBytes,

Source§

impl<T> ArrayFromIter<T> for BinaryArray<i64>
where T: IntoBytes,

Source§

impl<T> ArrayFromIter<T> for BinaryViewArrayGeneric<str>
where T: StrIntoBytes,

Source§

impl<T> ArrayFromIter<T> for BinaryViewArrayGeneric<[u8]>
where T: IntoBytes,

Source§

impl<T> ArrayFromIter<T> for PrimitiveArray<T>
where T: NativeType,

Source§

impl<T> ArrayFromIter<T> for Utf8Array<i64>
where T: StrIntoBytes,