Trait rai_core::Dim

source ·
pub trait Dim: Debug {
    // Required methods
    fn dim_of<T: Shape + ?Sized>(&self, shape: &T) -> usize;
    fn is_negative(&self) -> bool;
}

Required Methods§

source

fn dim_of<T: Shape + ?Sized>(&self, shape: &T) -> usize

source

fn is_negative(&self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Dim for i32

source§

fn dim_of<T: Shape + ?Sized>(&self, shape: &T) -> usize

source§

fn is_negative(&self) -> bool

source§

impl Dim for isize

source§

fn dim_of<T: Shape + ?Sized>(&self, shape: &T) -> usize

source§

fn is_negative(&self) -> bool

source§

impl Dim for usize

source§

fn dim_of<T: Shape + ?Sized>(&self, shape: &T) -> usize

source§

fn is_negative(&self) -> bool

source§

impl<'a, T> Dim for &'a T
where T: Dim + ?Sized,

source§

fn dim_of<U: Shape + ?Sized>(&self, shape: &U) -> usize

source§

fn is_negative(&self) -> bool

Implementors§