Trait diffgeom::tensors::Variance [] [src]

pub trait Variance {
    type Rank: Unsigned + Add<U1>;
    fn variance() -> Vec<IndexType>;

    fn rank() -> usize { ... }
}

Trait identifying a type as representing a tensor variance. It is implemented for CovariantIndex, ContravariantIndex and tuples (Index, Variance).

Associated Types

type Rank: Unsigned + Add<U1>

Required Methods

fn variance() -> Vec<IndexType>

Provided Methods

fn rank() -> usize

Implementors