Enum qrcode::canvas::MaskPattern[][src]

pub enum MaskPattern {
    Checkerboard,
    HorizontalLines,
    VerticalLines,
    DiagonalLines,
    LargeCheckerboard,
    Fields,
    Diamonds,
    Meadow,
}

The mask patterns. Since QR code and Micro QR code do not use the same pattern number, we name them according to their shape instead of the number.

Variants

QR code pattern 000: (x + y) % 2 == 0.

QR code pattern 001: y % 2 == 0.

QR code pattern 010: x % 3 == 0.

QR code pattern 011: (x + y) % 3 == 0.

QR code pattern 100: ((x/3) + (y/2)) % 2 == 0.

QR code pattern 101: (x*y)%2 + (x*y)%3 == 0.

QR code pattern 110: ((x*y)%2 + (x*y)%3) % 2 == 0.

QR code pattern 111: ((x+y)%2 + (x*y)%3) % 2 == 0.

Trait Implementations

impl Debug for MaskPattern
[src]

Formats the value using the given formatter. Read more

impl Copy for MaskPattern
[src]

impl Clone for MaskPattern
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MaskPattern

impl Sync for MaskPattern