[][src]Module rqr::matrix

The matrix holds all modules in a QR code.

They're organized in a 2-dimensional grid but held in a vector internally.

The implementation uses assertions heavily to ensure correctness. If interfacing with the matrix directly take care not to violate assumptions, like overwriting existing data.

Structs

Matrix

Matrix is a 2-dimensional grid holding the QR modules.

Enums

Module

The type of a module. Differentiates the different types during construction, a valid QR code should only hold function and data modules.