pub trait AxisDirection: Clone {
    fn is_forward(&self) -> bool;
fn dir_to_index(&self) -> usize;
unsafe fn dir_from_index_unchecked(index: usize) -> Self;
fn dir_from_index(index: usize) -> Option<Self>
    where
        Self: Sized
; fn is_backward(&self) -> bool { ... } }
Expand description

Direction of axis. It tells which direction is connected to node.

Required methods

👎 Deprecated:

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.

Provided methods

👎 Deprecated:

Use !Axis::is_forward_direction instead.

Check this doesn’t match whith Axis. It will always return false when Axis is directed.

Implementors

Implimention for Axis of directed graph.