pub fn print_qr<D: AsRef<[u8]>>(data: D) -> Result<(), QrError>
Expand description

Print the given data as QR code in the terminal.

Returns an error if generating the QR code failed.

Examples

qr2term::print_qr("https://rust-lang.org/").unwrap();

Panics

Panics if printing the QR code to the terminal failed.