iced::widget

Module qr_code

Source
Available on crate feature qr_code only.
Expand description

QR codes display information in a type of two-dimensional matrix barcode.

§Example

use iced::widget::qr_code;

struct State {
   data: qr_code::Data,
}

#[derive(Debug, Clone)]
enum Message {
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    qr_code(&state.data).into()
}

Structs§

  • The data of a QRCode.
  • A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.
  • The appearance of a QR code.

Enums§

Traits§

Functions§

Type Aliases§