Expand description
A lightweight two-dimensional wrapper around a Vec.
Structs
- An iterator over a single column.
- A mutable iterator over a single column.
- Drains a column.
- 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). - An
Iteratorover each row of aTooDee[View], where each row is represented as a slice. - A mutable Iterator over each row of a
TooDee[ViewMut], where each row is represented as a slice. - Represents a two-dimensional array.
- Provides a read-only view (or subset) of a
TooDeearray. - Provides a mutable view (or subset), of a
TooDeearray.
Traits
- Provides basic copying operations for
TooDeestructures. - 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.
- An
Iteratorthat knows how many columns it emits per row. - Defines operations common to both
TooDeeandTooDeeView. Default implementations are provided where possible/practical. - Defines operations common to both
TooDeeandTooDeeViewMut. Default implementations are provided where possible/practical. - Provides implementations for translate (also known as scroll) operations, and other internal data movement operations such as flipping.
Type Definitions
- An iterator over each “cell” in a 2D array
- A mutable iterator over each “cell” in a 2D array
- A (col, row) coordinate in 2D space.
- DrainRow type alias for future-proofing.
- IntoIter type alias for future-proofing.