mlx_rs::ops::indexing

Trait ArrayIndex

Source
pub trait ArrayIndex<'a> {
    // Required method
    fn index_op(self) -> ArrayIndexOp<'a>;
}
Expand description

Trait for custom indexing operations.

Required Methods§

Source

fn index_op(self) -> ArrayIndexOp<'a>

mlx allows out of bounds indexing.

Implementations on Foreign Types§

Source§

impl<'a> ArrayIndex<'a> for i32

Source§

impl<'a> ArrayIndex<'a> for Range<i32>

Source§

impl<'a> ArrayIndex<'a> for RangeFrom<i32>

Source§

impl<'a> ArrayIndex<'a> for RangeFull

Source§

impl<'a> ArrayIndex<'a> for RangeInclusive<i32>

Source§

impl<'a> ArrayIndex<'a> for RangeTo<i32>

Source§

impl<'a> ArrayIndex<'a> for RangeToInclusive<i32>

Implementors§