mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
datamatrix modifications
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
use crate::{common::{DetectorRXingResult, BitMatrix}, RXingResultPoint};
|
||||
use crate::{
|
||||
common::{BitMatrix, DetectorRXingResult},
|
||||
RXingResultPoint,
|
||||
};
|
||||
|
||||
pub struct DatamatrixDetectorResult(BitMatrix,Vec<RXingResultPoint>);
|
||||
pub struct DatamatrixDetectorResult(BitMatrix, Vec<RXingResultPoint>);
|
||||
|
||||
impl DatamatrixDetectorResult {
|
||||
pub fn new(bits:BitMatrix, points:Vec<RXingResultPoint>)->Self {
|
||||
Self(bits,points)
|
||||
pub fn new(bits: BitMatrix, points: Vec<RXingResultPoint>) -> Self {
|
||||
Self(bits, points)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +19,4 @@ impl DetectorRXingResult for DatamatrixDetectorResult {
|
||||
fn getPoints(&self) -> &Vec<RXingResultPoint> {
|
||||
&self.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
mod detector;
|
||||
mod datamatrix_result;
|
||||
mod detector;
|
||||
pub use datamatrix_result::*;
|
||||
pub use detector::*;
|
||||
pub use datamatrix_result::*;
|
||||
Reference in New Issue
Block a user