pub fn encode_auto_with_max_version(
data: &[u8],
ec_level: EcLevel,
max_version: i16,
) -> QrResult<Bits>Expand description
Automatically encodes data while capping normal QR version selection.
This is the bounded counterpart to encode_auto. The maximum version is
validated by the caller (ResourceLimits) and is kept as a small integer
here so this low-level helper remains useful to the facade without adding
a dependency cycle.