Files
rxing/src/datamatrix/detector/datamatrix_result.rs
2022-10-31 16:17:27 -05:00

23 lines
491 B
Rust

use crate::{
common::{BitMatrix, DetectorRXingResult},
RXingResultPoint,
};
pub struct DatamatrixDetectorResult(BitMatrix, Vec<RXingResultPoint>);
impl DatamatrixDetectorResult {
pub fn new(bits: BitMatrix, points: Vec<RXingResultPoint>) -> Self {
Self(bits, points)
}
}
impl DetectorRXingResult for DatamatrixDetectorResult {
fn getBits(&self) -> &BitMatrix {
&self.0
}
fn getPoints(&self) -> &Vec<RXingResultPoint> {
&self.1
}
}