Trait RangeArg

pub trait RangeArg {
    // Required method
    fn into_range(self, shape_dim: usize) -> Range<usize>;
}
Expand description

Trait used for slice dim arguments.

Required Methods§

fn into_range(self, shape_dim: usize) -> Range<usize>

Converts into a range for the tensor.slice_dim() function

Implementors§

§

impl<T> RangeArg for T
where T: Into<Slice>,