qrcode-decode 2.2.1

QR code decoding traits, grayscale views, Structured Append parsing, and optional rqrr adapter for qrcode-rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Modified derivative of rxing 0.9.3; see engine/ORIGIN.md and source-provenance.json.
use crate::engine::common::{BitMatrix, DetectorRXingResult};

pub struct QRCodeDetectorResult {
    bit_source: BitMatrix,
}

impl QRCodeDetectorResult {
    pub fn new(bit_source: BitMatrix) -> Self {
        Self { bit_source }
    }
}

impl DetectorRXingResult for QRCodeDetectorResult {
    fn getBits(&self) -> &BitMatrix {
        &self.bit_source
    }
}