[−][src]Module unsegen::base::basic_types
Basic numeric semantic wrapper types for use in other parts of the library.
Structs
AxisDiff | AxisDiff (the base for ColDiff or RowDiff) specifies a difference between two coordinate points on a terminal grid. (i.e., a coordinate of a vector on the terminal cell grid) |
AxisIndex | AxisIndex (the base for ColIndex or RowIndex) is a signed integer coordinate (i.e., a coordinate of a point on the terminal cell grid) |
ColDimension | The horizontal (i.e., x-) dimension of a terminal grid. See ColIndex, ColDiff, and Width. |
IndexRange | Wrapper for Ranges of AxisIndex to make them iterable. This should be removed once #42168 is stabilized. |
LineIndex | A type for enumerating lines by index (rather than by number), i.e., starting from 0. Conversions between LineNumber and LineIndex are always safe. |
LineNumber | A type for enumerating lines by number (rather than by index), i.e., starting from 1. Conversions between LineNumber and LineIndex are always safe. |
PositiveAxisDiff | PositiveAxisDiff (the base for Width or Height) specifies a non-negative (or absolute) difference between two coordinate points on a terminal grid. |
RowDimension | The vertical (i.e., y-) dimension of a terminal grid. See RowIndex, RowDiff and Height. |
Traits
AxisDimension | Trait for all dimensions of a terminal grid. See RowDimension and ColDimension. You probably do not want to implement this trait yourself. |
Type Definitions
ColDiff | An AxisDiff in x-dimension. |
ColIndex | An AxisIndex in x-dimension. |
Height | A PositiveAxisDiff in y-dimension. |
RowDiff | An AxisDiff in y-dimension. |
RowIndex | An AxisIndex in y-dimension. |
Width | A PositiveAxisDiff in x-dimension. |