polars_utils::index

Function check_bounds

Source
pub fn check_bounds(idx: &[IdxSize], len: IdxSize) -> PolarsResult<()>