Trait rai_core::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>

Object Safety§

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§