pub fn print_qr(text: &str) {
    let errcorlvl: QrCodeEcc = QrCodeEcc::Medium; // Error correction level

    // Make and print the QR Code symbol
    let qr: QrCode = QrCode::encode_text(text, errcorlvl).unwrap();

    let border: i32 = 4;
    for y in -border / 2..qr.size() / 2 + border / 2 + 1 {
        for x in -border..qr.size() + border {
            let c = match (!qr.get_module(x, y * 2), !qr.get_module(x, y * 2 + 1)) {
                (true, true) => '█',
                (true, false) => '▀',
                (false, true) => '▄',
                (false, false) => ' ',
            };
            print!("{0}", c);
        }
        println!();
    }
    println!();
}
// Prints the given QrCode object to the console.
Prints the given QrCode object to the console.
Prints the given QrCode object to the console .
pub fn print_qr(text: &str) {
    let errcorlvl: QrCodeEcc = QrCodeEcc::Medium; // Error correction level
    // Make and print the QR Code symbol
    let qr: QrCode = QrCode::encode_text(text, errcorlvl).unwrap();
    let border: i32 = 4;
    for y in -border / 2..qr.size() / 2 + border / 2 + 1 {
        for x in -border..qr.size() + border {
            let c = match (!qr.get_module(x, y * 2), !qr.get_module(x, y * 2 + 1)) {
                (true, true) => '█',
                (true, false) => '▀',
                (false, true) => '▄',
                (false, false) => ' ',
            };
            print!("{0}", c);
        }
        println!();
    }
    println!();
}
pub fn print_qr ( text : & str ) { let errcorlvl : QrCodeEcc = QrCodeEcc :: Medium ; // Error correction level // Make and print the QR Code symbol let qr : QrCode = QrCode :: encode_text ( text , errcorlvl ) . unwrap ( ) ; let border : i32 = 4 ; for y in - border / 2 .. qr . size ( ) / 2 + border / 2 + 1 { for x in - border .. qr . size ( ) + border { let c = match ( ! qr . get_module ( x , y * 2 ) , ! qr . get_module ( x , y * 2 + 1 ) ) { ( true , true ) => '█', ( true , false ) => '▀', ( false , true ) => '▄', ( false , false ) => ' ' , } ; print ! ( " " c ) ; } println ! ( ) ; } println ! ( ) ; }
Prints the given QrCode object to the console.
Prints the given QrCode object to the console .
text
&str