pub enum Braille {
Dark,
Light,
}Expand description
UTF-8 rendering using Braille characters (U+2800–U+28FF).
Each character encodes a 2×4 grid of 8 dots, yielding 8 pixels per character — the highest density among Unicode renderers.
§Example
use qrcode_core::Color as ModuleColor;
use qrcode_render::{Renderer, unicode::Braille};
let modules = [ModuleColor::Dark; 16];
let text = Renderer::<Braille>::new(&modules, 4, 0).module_dimensions(1, 1).build();
println!("{}", text);Unicode renderer packing a 2×4 block of pixels per character using Braille patterns (U+2800–U+28FF) — the densest text output.
Variants§
Trait Implementations§
impl Copy for Braille
impl Eq for Braille
Source§impl Pixel for Braille
impl Pixel for Braille
Source§type Canvas = CanvasBraille
type Canvas = CanvasBraille
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) -> Braille
fn default_color(color: Color) -> Braille
Obtains the default pixel color when a module is dark or light.
impl StructuralPartialEq for Braille
Auto Trait Implementations§
impl Freeze for Braille
impl RefUnwindSafe for Braille
impl Send for Braille
impl Sync for Braille
impl Unpin for Braille
impl UnsafeUnpin for Braille
impl UnwindSafe for Braille
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