| 1 | /// Module is a single pixel in the QR code. |
| 2 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)] |
| 3 | #[repr(u8)] |
| 4 | pub enum ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType# { |
| 5 | /// The module is part of the data (Encoded data) |
| 6 | Datarust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Data# = 0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 7 | /// The module is part of the finder pattern (bigger cubes) |
| 8 | FinderPatternrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#FinderPattern# = 1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 9 | /// The module is part of the alignment pattern (smaller cubes) |
| 10 | Alignmentrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Alignment# = 2 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 11 | /// The module is part of the timing pattern (Line between finder patterns) |
| 12 | Timingrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Timing# = 3 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 13 | /// The module is part of the format information |
| 14 | Formatrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Format# = 4 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 15 | /// The module is part of the version information |
| 16 | Versionrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Version# = 5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 17 | /// Dark module |
| 18 | DarkModulerust-analyzer cargo fast_qr 0.13.1 module/ModuleType#DarkModule# = 6 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 19 | /// Space between finder patterns |
| 20 | Emptyrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Empty# = 7 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shl<i32>`]shl().1, |
| 21 | } |
| 22 | |
| 23 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<u8> for ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType# { |
| 24 | fn fromrust-analyzer cargo fast_qr 0.13.1 module/impl#[ModuleType][`From<u8>`]from().(value: u8) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[ModuleType][`From<u8>`] { |
| 25 | match value { |
| 26 | 0 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Datarust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Data#, |
| 27 | 1 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::FinderPatternrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#FinderPattern#, |
| 28 | 2 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Alignmentrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Alignment#, |
| 29 | 3 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Timingrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Timing#, |
| 30 | 4 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Formatrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Format#, |
| 31 | 5 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Versionrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Version#, |
| 32 | 6 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::DarkModulerust-analyzer cargo fast_qr 0.13.1 module/ModuleType#DarkModule#, |
| 33 | 7 => ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Emptyrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Empty#, |
| 34 | _ => unreachablerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/unreachable!!(), |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// Module is a single pixel in the QR code. |
| 40 | /// Module uses u8 to store value and type. |
| 41 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 42 | pub struct Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#(pub u8); |
| 43 | |
| 44 | impl Modulerust-analyzer cargo fast_qr 0.13.1 module/Module# { |
| 45 | /// Represents a dark module, which is a black pixel. |
| 46 | pub const DARKrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]DARK.: bool = true; |
| 47 | /// Represents a light module, which is a white pixel. |
| 48 | pub const LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.: bool = false; |
| 49 | |
| 50 | /// Creates a new module with the given type and value. |
| 51 | #[must_use] |
| 52 | pub const fn newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value: bool, module_type: ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 53 | let value = value as u8; |
| 54 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#(value rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor().(module_type as u8)) |
| 55 | } |
| 56 | |
| 57 | /// Creates a new module with the given value with type data. |
| 58 | #[must_use] |
| 59 | pub const fn datarust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]data().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 60 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Datarust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Data#) |
| 61 | } |
| 62 | |
| 63 | /// Creates a new module with the given value with type finder pattern. |
| 64 | #[must_use] |
| 65 | pub const fn finder_patternrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]finder_pattern().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 66 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::FinderPatternrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#FinderPattern#) |
| 67 | } |
| 68 | |
| 69 | /// Creates a new module with the given value with type alignment. |
| 70 | #[must_use] |
| 71 | pub const fn alignmentrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]alignment().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 72 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Alignmentrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Alignment#) |
| 73 | } |
| 74 | |
| 75 | /// Creates a new module with the given value with type timing. |
| 76 | #[must_use] |
| 77 | pub const fn timingrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]timing().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 78 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Timingrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Timing#) |
| 79 | } |
| 80 | |
| 81 | /// Creates a new module with the given value with type format. |
| 82 | #[must_use] |
| 83 | pub const fn formatrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]format().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 84 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Formatrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Format#) |
| 85 | } |
| 86 | |
| 87 | /// Creates a new module with the given value with type version. |
| 88 | #[must_use] |
| 89 | pub const fn versionrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]version().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 90 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Versionrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Version#) |
| 91 | } |
| 92 | |
| 93 | /// Creates a new module with the given value with type dark module. |
| 94 | #[must_use] |
| 95 | pub const fn darkrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]dark().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 96 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::DarkModulerust-analyzer cargo fast_qr 0.13.1 module/ModuleType#DarkModule#) |
| 97 | } |
| 98 | |
| 99 | /// Creates a new module with the given value with type empty. |
| 100 | #[must_use] |
| 101 | pub const fn emptyrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]empty().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module] { |
| 102 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::newrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]new().(value, ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Emptyrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Empty#) |
| 103 | } |
| 104 | |
| 105 | /// Returns the boolean value of the module. |
| 106 | #[must_use] |
| 107 | pub const fn valuerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]value().(self) -> bool { |
| 108 | self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand().1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().1 |
| 109 | } |
| 110 | |
| 111 | /// Returns the type of the module. |
| 112 | #[must_use] |
| 113 | pub fn module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(self) -> ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType# { |
| 114 | ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::fromrust-analyzer cargo fast_qr 0.13.1 module/impl#[ModuleType][`From<u8>`]from().(self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`Shr<i32>`]shr().1) |
| 115 | } |
| 116 | |
| 117 | /// Sets the boolean value of the module. |
| 118 | pub fn setrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]set().(&mut self, value: bool) { |
| 119 | self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. = if value { self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOr<Self>`]bitor().1 } else { self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitAnd<Self>`]bitand().!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][Not]not().1 }; |
| 120 | } |
| 121 | |
| 122 | /// Toggles the boolean value of the module. |
| 123 | pub fn togglerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]toggle().(&mut self) { |
| 124 | self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitXorAssign<Self>`]bitxor_assign().^=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitXorAssign<Self>`]bitxor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitXorAssign<Self>`]bitxor_assign().1; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<bool> for Modulerust-analyzer cargo fast_qr 0.13.1 module/Module# { |
| 129 | fn fromrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`From<bool>`]from().(value: bool) -> Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`From<bool>`] { |
| 130 | Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::emptyrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]empty().(value) |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#<bool> for Modulerust-analyzer cargo fast_qr 0.13.1 module/Module# { |
| 135 | fn eqrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`PartialEq<bool>`]eq().(&self, other: &bool) -> bool { |
| 136 | self.valuerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]value().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[bool][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[bool][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[bool][`PartialEq<Self>`]eq().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().other |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#<Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`PartialEq<Self>`]> for Modulerust-analyzer cargo fast_qr 0.13.1 module/Module# { |
| 141 | fn eqrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`PartialEq<Self>`]eq().(&self, other: &Selfrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module][`PartialEq<Self>`]) -> bool { |
| 142 | self.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().other.0rust-analyzer cargo fast_qr 0.13.1 module/Module#0. |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for Modulerust-analyzer cargo fast_qr 0.13.1 module/Module# {} |
| 147 | |
| 148 | #[cfg(test)] |
| 149 | mod testrust-analyzer cargo fast_qr 0.13.1 module/test/ { |
| 150 | use superrust-analyzer cargo fast_qr 0.13.1 module/::*; |
| 151 | |
| 152 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 153 | fn byte_sizerust-analyzer cargo fast_qr 0.13.1 module/test/byte_size().() { |
| 154 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#>(), 1); |
| 155 | } |
| 156 | |
| 157 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 158 | fn datarust-analyzer cargo fast_qr 0.13.1 module/test/data().() { |
| 159 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::datarust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]data().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 160 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Datarust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Data#); |
| 161 | } |
| 162 | |
| 163 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 164 | fn finder_patternrust-analyzer cargo fast_qr 0.13.1 module/test/finder_pattern().() { |
| 165 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::finder_patternrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]finder_pattern().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 166 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::FinderPatternrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#FinderPattern#); |
| 167 | } |
| 168 | |
| 169 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 170 | fn alignmentrust-analyzer cargo fast_qr 0.13.1 module/test/alignment().() { |
| 171 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::alignmentrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]alignment().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 172 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Alignmentrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Alignment#); |
| 173 | } |
| 174 | |
| 175 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 176 | fn timingrust-analyzer cargo fast_qr 0.13.1 module/test/timing().() { |
| 177 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::timingrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]timing().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 178 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Timingrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Timing#); |
| 179 | } |
| 180 | |
| 181 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 182 | fn formatrust-analyzer cargo fast_qr 0.13.1 module/test/format().() { |
| 183 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::formatrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]format().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 184 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Formatrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Format#); |
| 185 | } |
| 186 | |
| 187 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 188 | fn versionrust-analyzer cargo fast_qr 0.13.1 module/test/version().() { |
| 189 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::versionrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]version().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 190 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::Versionrust-analyzer cargo fast_qr 0.13.1 module/ModuleType#Version#); |
| 191 | } |
| 192 | |
| 193 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 194 | fn darkrust-analyzer cargo fast_qr 0.13.1 module/test/dark().() { |
| 195 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::darkrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]dark().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 196 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.module_typerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]module_type().(), ModuleTyperust-analyzer cargo fast_qr 0.13.1 module/ModuleType#::DarkModulerust-analyzer cargo fast_qr 0.13.1 module/ModuleType#DarkModule#); |
| 197 | } |
| 198 | |
| 199 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 200 | fn value_lightrust-analyzer cargo fast_qr 0.13.1 module/test/value_light().() { |
| 201 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::datarust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]data().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 202 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.valuerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]value().(), Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 203 | } |
| 204 | |
| 205 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 206 | fn value_darkrust-analyzer cargo fast_qr 0.13.1 module/test/value_dark().() { |
| 207 | let module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::datarust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]data().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::DARKrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]DARK.); |
| 208 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.valuerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]value().(), Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::DARKrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]DARK.); |
| 209 | } |
| 210 | |
| 211 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 212 | fn setrust-analyzer cargo fast_qr 0.13.1 module/test/set().() { |
| 213 | let mut module = Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::datarust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]data().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::LIGHTrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]LIGHT.); |
| 214 | module.setrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]set().(Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::DARKrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]DARK.); |
| 215 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(module.valuerust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]value().(), Modulerust-analyzer cargo fast_qr 0.13.1 module/Module#::DARKrust-analyzer cargo fast_qr 0.13.1 module/impl#[Module]DARK.); |
| 216 | } |
| 217 | } |