Trait polars::series::arithmetic::checked::NumOpsDispatchCheckedInner
source · pub trait NumOpsDispatchCheckedInner: Sized + PolarsDataType {
// Provided methods
fn checked_div(
lhs: &ChunkedArray<Self>,
rhs: &Series
) -> Result<Series, PolarsError> { ... }
fn checked_div_num<T>(
lhs: &ChunkedArray<Self>,
_rhs: T
) -> Result<Series, PolarsError>
where T: ToPrimitive { ... }
}
Available on crate feature
checked_arithmetic
only.Provided Methods§
sourcefn checked_div(
lhs: &ChunkedArray<Self>,
rhs: &Series
) -> Result<Series, PolarsError>
fn checked_div( lhs: &ChunkedArray<Self>, rhs: &Series ) -> Result<Series, PolarsError>
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
fn checked_div_num<T>(
lhs: &ChunkedArray<Self>,
_rhs: T
) -> Result<Series, PolarsError>where
T: ToPrimitive,
Object Safety§
This trait is not object safe.