Trait polars_ops::chunked_array::ChunkedSet
source · pub trait ChunkedSet<T: Copy> {
// Required method
fn scatter<V>(self, idx: &[IdxSize], values: V) -> PolarsResult<Series>
where V: IntoIterator<Item = Option<T>>;
}Required Methods§
sourcefn scatter<V>(self, idx: &[IdxSize], values: V) -> PolarsResult<Series>where
V: IntoIterator<Item = Option<T>>,
fn scatter<V>(self, idx: &[IdxSize], values: V) -> PolarsResult<Series>where
V: IntoIterator<Item = Option<T>>,
Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.
Object Safety§
This trait is not object safe.