[−][src]Function qrcode::bits::encode_auto
pub fn encode_auto(data: &[u8], ec_level: EcLevel) -> QrResult<Bits>
Automatically determines the minimum version to store the data, and encode the result.
This method will not consider any Micro QR code versions.
Errors
Returns Err(QrError::DataTooLong)
if the data is too long to fit even the
highest QR code version.