A library that provides a way to easily extract 1d ranges from a 2d container based off of the x or y axis statically through type parameters. This is useful if you have a function that operates on an axis that recursively calls itself but at the same time alternates its axis. Also provides useful functions that operate on types that implement Ord such as grow_to_fit().
A wrapper around an array that lets you extract the x and y components using the AxisTrait.
A 1d range. Internally represented as start and end. (not start and length) This means that subdivision does not result in any floating point calculations. The left value be <= the right value. There is no protection against "degenerate" Ranges where left>right. Unlike std::ops::Range, It is a fully closed range. Points exactly on the borders are considered inside the range.
An axis aligned rectangle. Stored as two Ranges. It is a fully closed rectangle. Points exactly along the border of the rectangle are considered inside the rectangle.
The x axis implementation of the AxisTrait
The y axis implementation of the AxisTrait
Axis trait can be used to extract the x or y portions of a container. when you know the axis as compile time. The X implementation of this trait's Next associated trait is the Y implementation. The Y implementation of this trait's Next associated trait is the X implementation.