Trait TensorIndex

Source
pub trait TensorIndex: Variance {
    // Required method
    fn index_type() -> IndexType;
}
Expand description

Trait identifying a type as representing a tensor index. It is implemented for CovariantIndex and ContravariantIndex.

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.

Implementors§