pub trait ChunkedSet<T>where
T: Copy,{
// Required method
fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>
where V: IntoIterator<Item = Option<T>>;
}
Available on crate feature
polars-ops
only.Required Methods§
Sourcefn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>where
V: IntoIterator<Item = Option<T>>,
fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>where
V: IntoIterator<Item = Option<T>>,
Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.
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.