Expand description
§QR Code Generator Library
This library provides functionality to create QR codes with different error correction levels.
§Modules
bit_utils: Utility functions for bit manipulation.galios: Functions for Galois field arithmetic.qr_code: Core QR code generation logic.
§Functions
§create_qr_code
pub fn create_qr_code(data: &str, error_correction_level: ErrorCorrectionLevel) -> BitMapCreates a QR code from the given data and error correction level.
§Parameters
data: A string slice that holds the data to be encoded in the QR code.error_correction_level: The desired level of error correction for the QR code.
§Returns
A BitMap representing the generated QR code.
§Examples
use qr_code::*;
let qr_code = create_qr_code("HELLO, WORLD!", ErrorCorrectionLevel::Q);
println!("{}", qr_code);Structs§
Enums§
- Error
Correction Level - Represents the error correction levels for QR codes
Functions§
- create_
qr_ code - Creates a QR code bitmap from input data with specified error correction