mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
add missing to_string methods in pdf417
This commit is contained in:
@@ -127,9 +127,26 @@ impl DetectionRXingResultColumnTrait for DetectionRXingResultColumn {
|
||||
impl Display for DetectionRXingResultColumn {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
if self.isLeft.is_some() {
|
||||
write!(f, "IsLeft: {} \n", self.isLeft.as_ref().unwrap());
|
||||
write!(f, "IsLeft: {} \n", self.isLeft.as_ref().unwrap())?;
|
||||
}
|
||||
todo!()
|
||||
let mut row = 0;
|
||||
for codeword in &self.codewords {
|
||||
// for (Codeword codeword : codewords) {
|
||||
if codeword.is_none() {
|
||||
write!(f, "{:3}: | \n", row)?;
|
||||
row += 1;
|
||||
continue;
|
||||
}
|
||||
write!(
|
||||
f,
|
||||
"{:3}: {:3}|{:3}\n",
|
||||
row,
|
||||
codeword.as_ref().unwrap().getRowNumber(),
|
||||
codeword.as_ref().unwrap().getValue()
|
||||
)?;
|
||||
row += 1;
|
||||
}
|
||||
write!(f, "")
|
||||
}
|
||||
|
||||
// @Override
|
||||
|
||||
Reference in New Issue
Block a user