Skip to main content

Dim

Trait Dim 

Source
pub trait Dim: Copy {
    // Required methods
    fn to_index(&self, shape: &Shape, op: &'static str) -> Result<usize>;
    fn to_index_plus_one(
        &self,
        shape: &Shape,
        op: &'static str,
    ) -> Result<usize>;
}

Required Methods§

Source

fn to_index(&self, shape: &Shape, op: &'static str) -> Result<usize>

Source

fn to_index_plus_one(&self, shape: &Shape, op: &'static str) -> Result<usize>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Dim for usize

Source§

fn to_index(&self, shape: &Shape, op: &'static str) -> Result<usize>

Source§

fn to_index_plus_one(&self, shape: &Shape, op: &'static str) -> Result<usize>

Implementors§

Source§

impl Dim for D