Trait Dims

Source
pub trait Dims: Debug {
    // Required method
    fn dims_of<T: Shape + ?Sized>(&self, shape: &T) -> Vec<usize>;
}

Required Methods§

Source

fn dims_of<T: Shape + ?Sized>(&self, shape: &T) -> Vec<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 Dims for i32

Source§

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

Source§

impl Dims for isize

Source§

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

Source§

impl Dims for usize

Source§

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

Source§

impl Dims for Vec<i32>

Source§

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

Source§

impl Dims for Vec<isize>

Source§

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

Source§

impl Dims for Vec<usize>

Source§

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

Source§

impl Dims for Range<i32>

Source§

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

Source§

impl Dims for Range<isize>

Source§

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

Source§

impl Dims for Range<usize>

Source§

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

Source§

impl Dims for RangeFrom<i32>

Source§

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

Source§

impl Dims for RangeFrom<isize>

Source§

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

Source§

impl Dims for RangeFrom<usize>

Source§

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

Source§

impl Dims for RangeFull

Source§

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

Source§

impl Dims for RangeInclusive<i32>

Source§

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

Source§

impl Dims for RangeInclusive<isize>

Source§

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

Source§

impl Dims for RangeInclusive<usize>

Source§

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

Source§

impl Dims for RangeTo<i32>

Source§

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

Source§

impl Dims for RangeTo<isize>

Source§

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

Source§

impl Dims for RangeTo<usize>

Source§

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

Source§

impl Dims for RangeToInclusive<i32>

Source§

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

Source§

impl Dims for RangeToInclusive<isize>

Source§

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

Source§

impl Dims for RangeToInclusive<usize>

Source§

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

Source§

impl Dims for [i32]

Source§

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

Source§

impl Dims for [isize]

Source§

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

Source§

impl Dims for [usize]

Source§

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

Source§

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

Source§

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

Source§

impl<const N: usize> Dims for [i32; N]

Source§

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

Source§

impl<const N: usize> Dims for [isize; N]

Source§

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

Source§

impl<const N: usize> Dims for [usize; N]

Source§

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

Implementors§