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
impl Debug for IndexType
[src]
impl PartialEq for IndexType
[src]
fn eq(&self, __arg_0: &IndexType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Copy for IndexType
[src]
impl Clone for IndexType
[src]
fn clone(&self) -> IndexType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more