mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
cargo fmt
This commit is contained in:
@@ -25,7 +25,7 @@ use crate::Exceptions;
|
|||||||
*
|
*
|
||||||
* @author Alex Geller
|
* @author Alex Geller
|
||||||
*/
|
*/
|
||||||
pub trait ECIInput:Display {
|
pub trait ECIInput: Display {
|
||||||
/**
|
/**
|
||||||
* Returns the length of this input. The length is the number
|
* Returns the length of this input. The length is the number
|
||||||
* of {@code byte}s in or ECIs in the sequence.
|
* of {@code byte}s in or ECIs in the sequence.
|
||||||
|
|||||||
@@ -1241,7 +1241,7 @@ impl Edge {
|
|||||||
if self.input.isECI(self.fromPosition)? {
|
if self.input.isECI(self.fromPosition)? {
|
||||||
return Ok(Self::getBytes2(
|
return Ok(Self::getBytes2(
|
||||||
241,
|
241,
|
||||||
self.input.getECIValue(self.fromPosition as usize)? as u32+ 1,
|
self.input.getECIValue(self.fromPosition as usize)? as u32 + 1,
|
||||||
));
|
));
|
||||||
} else if isExtendedASCII(
|
} else if isExtendedASCII(
|
||||||
self.input.charAt(self.fromPosition as usize)?,
|
self.input.charAt(self.fromPosition as usize)?,
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
mod pdf_417_detector_result;
|
mod pdf_417_detector_result;
|
||||||
pub use pdf_417_detector_result::*;
|
pub use pdf_417_detector_result::*;
|
||||||
|
|
||||||
pub mod detector;
|
pub mod detector;
|
||||||
|
|||||||
@@ -14,15 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents possible PDF417 barcode compaction types.
|
* Represents possible PDF417 barcode compaction types.
|
||||||
*/
|
*/
|
||||||
pub enum Compaction {
|
pub enum Compaction {
|
||||||
|
AUTO = 0,
|
||||||
AUTO=0,
|
TEXT = 1,
|
||||||
TEXT=1,
|
BYTE = 2,
|
||||||
BYTE=2,
|
NUMERIC = 3,
|
||||||
NUMERIC=3
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
mod compaction;
|
mod compaction;
|
||||||
pub use compaction::*;
|
pub use compaction::*;
|
||||||
|
|
||||||
@@ -9,7 +8,7 @@ mod barcode_batrix;
|
|||||||
pub use barcode_batrix::*;
|
pub use barcode_batrix::*;
|
||||||
|
|
||||||
mod dimensions;
|
mod dimensions;
|
||||||
pub use dimensions::*;
|
pub use dimensions::*;
|
||||||
|
|
||||||
pub mod pdf_417_error_correction;
|
pub mod pdf_417_error_correction;
|
||||||
pub mod pdf_417_high_level_encoder;
|
pub mod pdf_417_high_level_encoder;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,4 +2,4 @@ pub mod decoder;
|
|||||||
pub mod detector;
|
pub mod detector;
|
||||||
pub mod encoder;
|
pub mod encoder;
|
||||||
|
|
||||||
pub mod pdf_417_common;
|
pub mod pdf_417_common;
|
||||||
|
|||||||
Reference in New Issue
Block a user