polars_compute::float_sum

Trait FloatSum

Source
pub trait FloatSum<F>: Sized {
    // Required methods
    fn sum(f: &[Self]) -> F;
    fn sum_with_validity(f: &[Self], validity: &Bitmap) -> F;
}

Required Methods§

Source

fn sum(f: &[Self]) -> F

Source

fn sum_with_validity(f: &[Self], validity: &Bitmap) -> F

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§

Source§

impl<T, F> FloatSum<F> for T
where F: Float + Sum + 'static, T: AsPrimitive<F>, [T; 128]: SumBlock<F>,