Trait Dims

Source
pub trait Dims:
    Copy
    + Debug
    + Default
    + IndexMut<(Bound<usize>, Bound<usize>), Output = [usize]>
    + IndexMut<usize, Output = usize>
    + IndexMut<Range<usize>, Output = [usize]>
    + IndexMut<RangeFrom<usize>, Output = [usize]>
    + IndexMut<RangeFull, Output = [usize]>
    + IndexMut<RangeInclusive<usize>, Output = [usize]>
    + IndexMut<RangeTo<usize>, Output = [usize]>
    + IndexMut<RangeToInclusive<usize>, Output = [usize]>
    + Send
    + Sync
    + for<'a> TryFrom<&'a [usize], Error: Debug> { }
Expand description

Array dimensions trait.

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 [usize; 0]

Source§

impl Dims for [usize; 1]

Source§

impl Dims for [usize; 2]

Source§

impl Dims for [usize; 3]

Source§

impl Dims for [usize; 4]

Source§

impl Dims for [usize; 5]

Source§

impl Dims for [usize; 6]

Implementors§