by_quandrant_reader port

This commit is contained in:
Henry Schimke
2022-12-01 14:07:40 -06:00
parent 7aea861417
commit 2d37d398e6
4 changed files with 183 additions and 117 deletions

View File

@@ -91,6 +91,18 @@ impl RXingResult {
}
}
pub fn new_from_existing_result(prev: Self, points: Vec<RXingResultPoint>) -> Self {
Self {
text: prev.text,
rawBytes: prev.rawBytes,
numBits: prev.numBits,
resultPoints: points,
format: prev.format,
resultMetadata: prev.resultMetadata,
timestamp: prev.timestamp,
}
}
/**
* @return raw text encoded by the barcode
*/