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