Files
rxing/src/datamatrix/detector/datamatrix_result.rs
Vukašin Stepanović dbc6ca4e55 wip: Search & replace RXingResultPoint with Point
Build fails because the OneDReader proc macro expects
that a RXingResultPoint type exists.
2023-02-16 08:25:32 +00:00

23 lines
444 B
Rust

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