Expand description
A lightweight two-dimensional wrapper around a Vec.
Structs§
- Col
- An iterator over a single column.
- ColMut
- A mutable iterator over a single column.
- Drain
Col - Drains a column.
- Flatten
Exact - An iterator that behaves like
core::iter::adapters::Flattenbut has the added advantage of implementingExactSizeIterator(we know how many cells there are per row in aTooDeearray). - Rows
- An
Iteratorover each row of aTooDee[View], where each row is represented as a slice. - RowsMut
- A mutable Iterator over each row of a
TooDee[ViewMut], where each row is represented as a slice. - TooDee
- Represents a two-dimensional array.
- TooDee
View - Provides a read-only view (or subset) of a
TooDeearray. - TooDee
View Mut - Provides a mutable view (or subset), of a
TooDeearray.
Traits§
- CopyOps
- Provides basic copying operations for
TooDeestructures. - SortOps
- Provides sorting capabilities to two-dimensional arrays. Sorting of the rows and columns is performed in-place, and care is taken to minimise row/col swaps. This is achieved by sorting the row/col and original index pair, then repositioning the rows/columns once the new ordering has been determined.
- TooDee
Iterator - An
Iteratorthat knows how many columns it emits per row. - TooDee
Ops - Defines operations common to both
TooDeeandTooDeeView. Default implementations are provided where possible/practical. - TooDee
OpsMut - Defines operations common to both
TooDeeandTooDeeViewMut. Default implementations are provided where possible/practical. - Translate
Ops - Provides implementations for translate (also known as scroll) operations, and other internal data movement operations such as flipping.
Type Aliases§
- Cells
- An iterator over each “cell” in a 2D array
- Cells
Mut - A mutable iterator over each “cell” in a 2D array
- Coordinate
- A
(col, row)coordinate in 2D space. - Drain
Row - DrainRow type alias for future-proofing.
- Into
Iter TooDee - IntoIter type alias for future-proofing.