pub trait RangesArg<const D2: usize> {
// Required method
fn into_ranges<const D: usize>(self, shape: Shape<D>) -> [Range<usize>; D2];
// Provided methods
fn handle_negative_index(start: i64, end: i64, dim: usize) -> (usize, usize) { ... }
fn clamp_range(start: usize, end: usize, dim: usize) -> (usize, usize) { ... }
}
Expand description
Trait used for slice arguments
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.