pub enum MicroVersion {
M1,
M2,
M3,
M4,
}Expand description
A Micro QR symbol version, M1–M4. The module grid is 11 + 2 * (n - 1) on a side.
Variants§
M1
11×11, numeric only, error-detection only (no correctable EC).
M2
13×13, supports EC levels L and M.
M3
15×15, supports EC levels L and M.
M4
17×17, supports EC levels L, M and Q.
Implementations§
Source§impl MicroVersion
impl MicroVersion
Sourcepub fn from_number(n: u8) -> Option<Self>
pub fn from_number(n: u8) -> Option<Self>
Construct from the index 1–4.
Trait Implementations§
Source§impl Clone for MicroVersion
impl Clone for MicroVersion
Source§fn clone(&self) -> MicroVersion
fn clone(&self) -> MicroVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MicroVersion
Source§impl Debug for MicroVersion
impl Debug for MicroVersion
impl Eq for MicroVersion
Source§impl Hash for MicroVersion
impl Hash for MicroVersion
Source§impl Ord for MicroVersion
impl Ord for MicroVersion
Source§fn cmp(&self, other: &MicroVersion) -> Ordering
fn cmp(&self, other: &MicroVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MicroVersion
impl PartialEq for MicroVersion
Source§impl PartialOrd for MicroVersion
impl PartialOrd for MicroVersion
impl StructuralPartialEq for MicroVersion
Auto Trait Implementations§
impl Freeze for MicroVersion
impl RefUnwindSafe for MicroVersion
impl Send for MicroVersion
impl Sync for MicroVersion
impl Unpin for MicroVersion
impl UnsafeUnpin for MicroVersion
impl UnwindSafe for MicroVersion
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