pub struct LinearCharacter {
pub elements: u32,
pub modules: u32,
pub stop_elements: u32,
pub stop_modules: u32,
}Expand description
How a linear symbology groups bars and spaces into fixed-width characters.
Every character of a linear symbology occupies a known number of modules spread over a known number of elements — bars and spaces — and the symbol finishes with a wider terminating pattern. A scanner uses this to convert pixel measurements back into modules one character at a time, instead of assuming a single module width holds across the whole symbol. That is what keeps decoding accurate when a label is printed a little off-scale or fed through a scanner at a slight skew.
This is metadata for the same reason
required_quiet_zone is: it lets
Scanner stay ignorant of which symbology it is
reading, exactly as the renderers are.
Fields§
§elements: u32Bars and spaces in one character.
modules: u32Modules in one character.
stop_elements: u32Bars and spaces in the terminating pattern.
stop_modules: u32Modules in the terminating pattern.
Trait Implementations§
Source§impl Clone for LinearCharacter
impl Clone for LinearCharacter
Source§fn clone(&self) -> LinearCharacter
fn clone(&self) -> LinearCharacter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more