Enum diffgeom::tensors::IndexType [] [src]

pub enum IndexType {
    Covariant,
    Contravariant,
}

This enum serves to represent the type of a tensor. A tensor can have any number of indices, and each one can be either covariant (a lower index), or contravariant (an upper index). For example, a vector is a tensor with only one contravariant index.

Variants

Covariant
Contravariant

Trait Implementations

Derived Implementations

impl Debug for IndexType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for IndexType

fn eq(&self, __arg_0: &IndexType) -> bool

fn ne(&self, __arg_0: &IndexType) -> bool

impl Copy for IndexType

impl Clone for IndexType

fn clone(&self) -> IndexType

fn clone_from(&mut self, source: &Self)