pub trait Element:
Sealed
+ Num
+ Clone
+ Debug
+ Send
+ Sync
+ 'static {
const DTYPE: DType;
}Expand description
An element type a Tensor<T> lens may be opened for.
Sealed: the eleven variants of [TensorDyn] are the only element types a
tensor can carry, and a downstream impl would let
as_typed name a dtype no tensor can hold.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".