Trait 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

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 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§