pub enum Dense3x2 {
Dark,
Light,
}Expand description
UTF-8 rendering using Unicode sextant characters (U+1FB00–U+1FB3F).
Each character encodes a 3×2 grid of 6 cells, yielding 6 pixels per character — between Dense2x2 (4 px) and Braille (8 px) in density.
Bit layout (per Unicode sextant specification):
bit0 bit3 row0[col] row0[col+1]
bit1 bit4 = row1[col] row1[col+1]
bit2 bit5 row2[col] row2[col+1]§Example
use qrcode_core::Color as ModuleColor;
use qrcode_render::{Renderer, unicode::Dense3x2};
let modules = [ModuleColor::Dark; 36];
let text = Renderer::<Dense3x2>::new(&modules, 6, 0).module_dimensions(1, 1).build();
println!("{}", text);Unicode renderer packing a 3×2 block of pixels per character using sextant elements (U+1FB00–U+1FB3F).
Variants§
Trait Implementations§
impl Copy for Dense3x2
impl Eq for Dense3x2
Source§impl Pixel for Dense3x2
impl Pixel for Dense3x2
Source§type Canvas = Canvas3x2
type Canvas = Canvas3x2
The type that stores an intermediate buffer before finalizing to a
concrete image
Source§fn default_unit_size() -> (u32, u32)
fn default_unit_size() -> (u32, u32)
Obtains the default module size. The result must be at least 1×1.
Source§fn default_color(color: Color) -> Dense3x2
fn default_color(color: Color) -> Dense3x2
Obtains the default pixel color when a module is dark or light.
impl StructuralPartialEq for Dense3x2
Auto Trait Implementations§
impl Freeze for Dense3x2
impl RefUnwindSafe for Dense3x2
impl Send for Dense3x2
impl Sync for Dense3x2
impl Unpin for Dense3x2
impl UnsafeUnpin for Dense3x2
impl UnwindSafe for Dense3x2
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