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