Trait candle_core::shape::Dim

source ·
pub trait Dim {
    // 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>

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