pub enum Module {
Unknown,
Reserved,
Function(bool),
Data(bool),
}
Expand description
The type of a module. Differentiates the different types during construction, a valid QR code should only hold function and data modules.
Variants§
Unknown
An unknown module, it hasn’t been assigned yet.
Reserved
Reserved module. Version and format info uses this to reserve modules before masking.
Function(bool)
Function module, contains QR code artifacts like finders and timing patterns.
Data(bool)
Data module. Contains both data and error codes.
Implementations§
Trait Implementations§
impl Copy for Module
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more