steady working on qrcode encoder

This commit is contained in:
Henry Schimke
2022-10-02 17:34:53 -05:00
parent 02288dcfc3
commit bbf0b920bf
8 changed files with 1062 additions and 871 deletions

View File

@@ -24,7 +24,7 @@ use super::Version;
*
* @author Sean Owen
*/
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
pub enum Mode {
TERMINATOR, //(new int[]{0, 0, 0}, 0x00), // Not really a mode...
NUMERIC, //(new int[]{10, 12, 14}, 0x01),

View File

@@ -22,6 +22,8 @@ use super::{ErrorCorrectionLevel, FormatInformation};
use lazy_static::lazy_static;
pub type VersionRef = &'static Version;
lazy_static! {
static ref VERSIONS: Vec<Version> = Version::buildVersions();
}