Skip to main content

Version

Enum Version 

Source
#[repr(u8)]
pub enum Version {
Show 32 variants R7x43 = 0, R7x59 = 1, R7x77 = 2, R7x99 = 3, R7x139 = 4, R9x43 = 5, R9x59 = 6, R9x77 = 7, R9x99 = 8, R9x139 = 9, R11x27 = 10, R11x43 = 11, R11x59 = 12, R11x77 = 13, R11x99 = 14, R11x139 = 15, R13x27 = 16, R13x43 = 17, R13x59 = 18, R13x77 = 19, R13x99 = 20, R13x139 = 21, R15x43 = 22, R15x59 = 23, R15x77 = 24, R15x99 = 25, R15x139 = 26, R17x43 = 27, R17x59 = 28, R17x77 = 29, R17x99 = 30, R17x139 = 31,
}
Available on crate feature rmqr only.
Expand description

A Rectangular Micro QR Code version.

Variants§

§

R7x43 = 0

A 7 by 43 rMQR symbol.

§

R7x59 = 1

A 7 by 59 rMQR symbol.

§

R7x77 = 2

A 7 by 77 rMQR symbol.

§

R7x99 = 3

A 7 by 99 rMQR symbol.

§

R7x139 = 4

A 7 by 139 rMQR symbol.

§

R9x43 = 5

A 9 by 43 rMQR symbol.

§

R9x59 = 6

A 9 by 59 rMQR symbol.

§

R9x77 = 7

A 9 by 77 rMQR symbol.

§

R9x99 = 8

A 9 by 99 rMQR symbol.

§

R9x139 = 9

A 9 by 139 rMQR symbol.

§

R11x27 = 10

An 11 by 27 rMQR symbol.

§

R11x43 = 11

An 11 by 43 rMQR symbol.

§

R11x59 = 12

An 11 by 59 rMQR symbol.

§

R11x77 = 13

An 11 by 77 rMQR symbol.

§

R11x99 = 14

An 11 by 99 rMQR symbol.

§

R11x139 = 15

An 11 by 139 rMQR symbol.

§

R13x27 = 16

A 13 by 27 rMQR symbol.

§

R13x43 = 17

A 13 by 43 rMQR symbol.

§

R13x59 = 18

A 13 by 59 rMQR symbol.

§

R13x77 = 19

A 13 by 77 rMQR symbol.

§

R13x99 = 20

A 13 by 99 rMQR symbol.

§

R13x139 = 21

A 13 by 139 rMQR symbol.

§

R15x43 = 22

A 15 by 43 rMQR symbol.

§

R15x59 = 23

A 15 by 59 rMQR symbol.

§

R15x77 = 24

A 15 by 77 rMQR symbol.

§

R15x99 = 25

A 15 by 99 rMQR symbol.

§

R15x139 = 26

A 15 by 139 rMQR symbol.

§

R17x43 = 27

A 17 by 43 rMQR symbol.

§

R17x59 = 28

A 17 by 59 rMQR symbol.

§

R17x77 = 29

A 17 by 77 rMQR symbol.

§

R17x99 = 30

A 17 by 99 rMQR symbol.

§

R17x139 = 31

A 17 by 139 rMQR symbol.

Implementations§

Source§

impl RmqrVersion

Source

pub const MAX: Self = Self::R17x139

The last rMQR version in format indicator order.

Source

pub const MIN: Self = Self::R7x43

The first rMQR version in format indicator order.

Source

pub const fn value(self) -> u8

Returns the five-bit version indicator value.

Source

pub const fn width(self) -> usize

Returns the symbol width in modules.

Source

pub const fn height(self) -> usize

Returns the symbol height in modules.

Trait Implementations§

Source§

impl Clone for RmqrVersion

Source§

fn clone(&self) -> RmqrVersion

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RmqrVersion

Source§

impl Debug for RmqrVersion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RmqrVersion

Source§

impl Hash for RmqrVersion

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for RmqrVersion

Source§

fn cmp(&self, other: &RmqrVersion) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for RmqrVersion

Source§

fn eq(&self, other: &RmqrVersion) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for RmqrVersion

Source§

fn partial_cmp(&self, other: &RmqrVersion) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for RmqrVersion

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V