#[non_exhaustive]pub enum QuietZone {
Standard,
Modules(u32),
None,
}Expand description
How much blank space to leave around the symbol.
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.
Standard
Whatever the symbology’s specification requires — 10 modules for Code 128. This is the default and the only setting that guarantees reliable scanning.
Modules(u32)
An explicit number of modules per side.
None
No quiet zone.
Only appropriate when the surrounding layout already guarantees blank space. A barcode printed flush against other content will frequently fail to scan.
Trait Implementations§
impl Copy for QuietZone
Source§impl<'de> Deserialize<'de> for QuietZone
Available on crate feature serde only.
impl<'de> Deserialize<'de> for QuietZone
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QuietZone
impl StructuralPartialEq for QuietZone
Auto Trait Implementations§
impl Freeze for QuietZone
impl RefUnwindSafe for QuietZone
impl Send for QuietZone
impl Sync for QuietZone
impl Unpin for QuietZone
impl UnsafeUnpin for QuietZone
impl UnwindSafe for QuietZone
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