pub unsafe trait Element: Clone {
const KIND: Kind;
const ZERO: Self;
}Expand description
Kinds for tensor elements
§Safety
The specified Kind must be for a type that has the same length as Self.
Required Associated Constants§
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.