[][src]Crate toodee

A lightweight two-dimensional wrapper around a Vec.

Structs

Col

An iterator over a single column.

ColMut

A mutable iterator over a single column.

DrainCol

Drains a column.

FlattenExact

An iterator that behaves like core::iter::adapters::Flatten but has the added advantage of implementing ExactSizeIterator (we know how many cells there are per row in a TooDee array).

Rows

An Iterator over each row of a TooDee[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.

TooDeeView

Provides a read-only view (or subset) of a TooDee array.

TooDeeViewMut

Provides a mutable view (or subset), of a TooDee array.

Traits

CopyOps

Provides basic copying operations for TooDee structures.

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 sort order has been determined.

TooDeeIterator

An Iterator that knows how many columns it emits per row.

TooDeeOps

Defines operations common to both TooDee and TooDeeView. Default implementations are provided where possible/practical.

TooDeeOpsMut

Defines operations common to both TooDee and TooDeeViewMut. Default implementations are provided where possible/practical.

TranslateOps

Provides implementations for translate (also known as scroll) operations, and other internal data movement operations such as flipping.

Type Definitions

Cells

An iterator over each "cell" in a 2D array

CellsMut

A mutable iterator over each "cell" in a 2D array

Coordinate

A (col, row) coordinate in 2D space.

DrainRow

DrainRow type alias for future-proofing.

IntoIterTooDee

IntoIter type alias for future-proofing.