#[non_exhaustive]pub enum SymbolVersion {
Qr(QrVersion),
Micro(MicroVersion),
Rmqr(RmqrVersion),
}Available on crate features
micro-qr or qr or rmqr only.Expand description
The version of an encoded symbol.
The available variants depend on the enabled symbol family features.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Qr(QrVersion)
Available on crate feature
qr only.A Model 2 QR Code version.
Micro(MicroVersion)
Available on crate feature
micro-qr only.A Micro QR Code version.
Rmqr(RmqrVersion)
Available on crate feature
rmqr only.A Rectangular Micro QR Code version.
Trait Implementations§
Source§impl Clone for SymbolVersion
impl Clone for SymbolVersion
Source§fn clone(&self) -> SymbolVersion
fn clone(&self) -> SymbolVersion
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 SymbolVersion
Source§impl Debug for SymbolVersion
impl Debug for SymbolVersion
impl Eq for SymbolVersion
Source§impl Hash for SymbolVersion
impl Hash for SymbolVersion
Source§impl Ord for SymbolVersion
impl Ord for SymbolVersion
Source§fn cmp(&self, other: &SymbolVersion) -> Ordering
fn cmp(&self, other: &SymbolVersion) -> 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 SymbolVersion
impl PartialEq for SymbolVersion
Source§impl PartialOrd for SymbolVersion
impl PartialOrd for SymbolVersion
impl StructuralPartialEq for SymbolVersion
Auto Trait Implementations§
impl Freeze for SymbolVersion
impl RefUnwindSafe for SymbolVersion
impl Send for SymbolVersion
impl Sync for SymbolVersion
impl Unpin for SymbolVersion
impl UnsafeUnpin for SymbolVersion
impl UnwindSafe for SymbolVersion
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