Struct qrcodegen::Mask [−][src]
pub struct Mask(_);
A number between 0 and 7 (inclusive).
Methods
impl Mask
[src]
impl Mask
pub fn new(mask: u8) -> Self
[src]
pub fn new(mask: u8) -> Self
Creates a mask object from the given number.
Panics if the number is outside the range [0, 7].
pub fn value(&self) -> u8
[src]
pub fn value(&self) -> u8
Returns the value, which is in the range [0, 7].