pub trait Tensor:
Index<usize>
+ IndexMut<usize>
+ PartialEq
+ Debug
+ Default
+ Copy
+ Clone {
type Value: TensorTrait;
const SIZE: usize;
const NDIM: usize;
// Required methods
fn dims() -> Vec<usize>;
fn get_dims(&self) -> Vec<usize>;
}
Required Associated Constants§
Required Associated Types§
type Value: TensorTrait
Required 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.