rxing/qrcode/detector/
qrcode_detector_result.rs1use crate::{
2 Point,
3 common::{BitMatrix, DetectorRXingResult},
4};
5
6pub struct QRCodeDetectorResult {
7 bit_source: BitMatrix,
8 result_points: Vec<Point>,
9}
10
11impl QRCodeDetectorResult {
12 pub fn new(bit_source: BitMatrix, result_points: Vec<Point>) -> Self {
13 Self {
14 bit_source,
15 result_points,
16 }
17 }
18}
19
20impl DetectorRXingResult for QRCodeDetectorResult {
21 fn getBits(&self) -> &crate::common::BitMatrix {
22 &self.bit_source
23 }
24
25 fn getPoints(&self) -> &[crate::Point] {
26 &self.result_points
27 }
28}