polars_arrow::array

Trait TryPush

Source
pub trait TryPush<A> {
    // Required method
    fn try_push(&mut self, item: A) -> PolarsResult<()>;
}
Expand description

A trait describing the ability of a struct to receive new items.

Required Methods§

Source

fn try_push(&mut self, item: A) -> PolarsResult<()>

Tries to push a new element.

Implementors§

Source§

impl TryPush<Option<bool>> for MutableBooleanArray

Source§

impl<K, M, T> TryPush<Option<T>> for MutableDictionaryArray<K, M>
where K: DictionaryKey, M: MutableArray + Indexable + TryPush<Option<T>>, T: AsIndexed<M>, M::Type: Eq + Hash,

Source§

impl<M, I, T> TryPush<Option<I>> for MutableFixedSizeListArray<M>
where M: MutableArray + TryExtend<Option<T>>, I: IntoIterator<Item = Option<T>>,

Source§

impl<O, M, I, T> TryPush<Option<I>> for MutableListArray<O, M>
where O: Offset, M: MutableArray + TryExtend<Option<T>>, I: IntoIterator<Item = Option<T>>,

Source§

impl<O: Offset, T: AsRef<str>> TryPush<Option<T>> for MutableUtf8Array<O>

Source§

impl<O: Offset, T: AsRef<str>> TryPush<T> for MutableUtf8ValuesArray<O>

Source§

impl<O: Offset, T: AsRef<[u8]>> TryPush<Option<T>> for MutableBinaryArray<O>

Source§

impl<O: Offset, T: AsRef<[u8]>> TryPush<T> for MutableBinaryValuesArray<O>

Source§

impl<T: NativeType> TryPush<Option<T>> for MutablePrimitiveArray<T>

Source§

impl<T: ViewType + ?Sized, P: AsRef<T>> TryPush<Option<P>> for MutableBinaryViewArray<T>