polars::prelude

Trait NumOpsDispatchChecked

Source
pub trait NumOpsDispatchChecked {
    // Required methods
    fn checked_div(&self, rhs: &Series) -> Result<Series, PolarsError>;
    fn checked_div_num<T>(&self, _rhs: T) -> Result<Series, PolarsError>
       where T: ToPrimitive;
}

Required Methods§

Source

fn checked_div(&self, rhs: &Series) -> Result<Series, PolarsError>

Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.

Source

fn checked_div_num<T>(&self, _rhs: T) -> Result<Series, PolarsError>
where T: ToPrimitive,

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§