DimTrait

Trait DimTrait 

Source
pub trait DimTrait:
    Index<usize, Output = usize>
    + IndexMut<usize>
    + IntoIterator<Item = usize>
    + Clone
    + Copy
    + Default
    + PartialEq
    + Debug
    + for<'a> From<&'a [usize]>
    + for<'a> From<&'a Self>
    + 'static {
    // Required methods
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn slice(&self) -> &[usize];

    // Provided methods
    fn is_overflow<D: DimTrait>(&self, index: D) -> bool { ... }
    fn num_elm(&self) -> usize { ... }
    fn is_scalar(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Source

fn slice(&self) -> &[usize]

Provided Methods§

Source

fn is_overflow<D: DimTrait>(&self, index: D) -> bool

Source

fn num_elm(&self) -> usize

Source

fn is_scalar(&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.

Implementors§