[][src]Enum rqr::matrix::Module

pub enum Module {
    Unknown,
    Reserved,
    Function(bool),
    Data(bool),
}

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.

Methods

impl Module[src]

pub fn is_dark(&self) -> bool[src]

Is the module dark? Only makes sense for data or function modules.

pub fn is_fun(&self) -> bool[src]

Is the module a function module? This includes reserved modules as well.

pub fn is_data(&self) -> bool[src]

Is the module a Data module?

Trait Implementations

impl Eq for Module[src]

impl Copy for Module[src]

impl PartialEq<Module> for Module[src]

impl Clone for Module[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Module[src]

impl Not for Module[src]

type Output = Module

The resulting type after applying the ! operator.

Auto Trait Implementations

impl Send for Module

impl Sync for Module

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]