Skip to main content

data_capacity_bits

Function data_capacity_bits 

Source
pub fn data_capacity_bits(
    version: Version,
    ec_level: EcLevel,
) -> QrResult<usize>
Expand description

Returns the data capacity (in bits) for the given version and error correction level โ€” the maximum number of data bits a symbol of that version can hold.

ยงErrors

Returns QrError::InvalidVersion for an incompatible version / ec-level combination (e.g. a Micro QR version with EcLevel::H).