ella_tensor::shape

Trait IndexValue

Source
pub trait IndexValue: Copy + Debug {
    // Required methods
    fn index(self) -> isize;
    fn abs_index(self, len: usize) -> usize;
}

Required Methods§

Source

fn index(self) -> isize

Source

fn abs_index(self, len: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IndexValue for i32

Source§

fn index(self) -> isize

Source§

fn abs_index(self, len: usize) -> usize

Source§

impl IndexValue for i64

Source§

fn index(self) -> isize

Source§

fn abs_index(self, len: usize) -> usize

Source§

impl IndexValue for isize

Source§

fn index(self) -> isize

Source§

fn abs_index(self, len: usize) -> usize

Source§

impl IndexValue for u32

Source§

fn index(self) -> isize

Source§

fn abs_index(self, _len: usize) -> usize

Source§

impl IndexValue for u64

Source§

fn index(self) -> isize

Source§

fn abs_index(self, _len: usize) -> usize

Source§

impl IndexValue for usize

Source§

fn index(self) -> isize

Source§

fn abs_index(self, _len: usize) -> usize

Implementors§