pub trait ElemType:
Clone
+ Copy
+ Debug
+ PartialEq
+ 'static {
type DType: Type<Repr = Self>;
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn elem_count(start: Self, stop: Self, step: Self) -> usize;
// Provided method
fn from_f64(val: f64) -> Option<Self> { ... }
}Required Associated Types§
Required Methods§
fn zero() -> Self
fn one() -> Self
fn elem_count(start: Self, stop: Self, step: Self) -> usize
Provided Methods§
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.