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§
Provided Methods§
fn is_overflow<D: DimTrait>(&self, index: D) -> bool
fn num_elm(&self) -> usize
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.