Enum lattice_graph::lattice_abstract::shapes::Direction
source · [−]pub enum Direction<T> {
Foward(T),
Backward(T),
}
Expand description
Implimention of AxisDirection
when Axis::DIRECTED
is false.
Variants
Foward(T)
Backward(T)
Trait Implementations
Use Axis::is_forward_direction instead.
Check this match whith Axis
. It will always return true when Axis
is directed.
Convert to index.
Convert from index.
Convert from index.
Use !Axis::is_forward_direction instead.
Check this doesn’t match whith Axis
. It will always return false when Axis
is directed.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Direction<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Direction<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
get wheter the type is const generic wrapper.
Compare self to key
and return true
if they are equal.