mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Build fails because the OneDReader proc macro expects that a RXingResultPoint type exists.
23 lines
444 B
Rust
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
|
|
}
|
|
}
|