mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
23 lines
491 B
Rust
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
|
|
}
|
|
}
|