[][src]Trait unsegen::base::basic_types::AxisDimension

pub trait AxisDimension: Copy {
    const NDARRAY_AXIS_NUMBER: usize;

    fn get_dimension_value(val: (usize, usize)) -> usize;
}

Trait for all dimensions of a terminal grid. See RowDimension and ColDimension. You probably do not want to implement this trait yourself.

Associated Constants

const NDARRAY_AXIS_NUMBER: usize

The equivalent ndarray dimension. (Used in Axis(...))

Loading content...

Required methods

fn get_dimension_value(val: (usize, usize)) -> usize

Get the value corresponding to this dimension from the tuple.

Loading content...

Implementors

Loading content...