rxing 0.8.5

A rust port of the zxing barcode library.
Documentation
use crate::{
    Point,
    common::{BitMatrix, DetectorRXingResult},
};

pub struct QRCodeDetectorResult {
    bit_source: BitMatrix,
    result_points: Vec<Point>,
}

impl QRCodeDetectorResult {
    pub fn new(bit_source: BitMatrix, result_points: Vec<Point>) -> Self {
        Self {
            bit_source,
            result_points,
        }
    }
}

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

    fn getPoints(&self) -> &[crate::Point] {
        &self.result_points
    }
}