pub struct StringRenderer { /* private fields */ }
Expand description
A string renderer for converting a QR code into a representation suitable for text output.
Implementations§
Source§impl StringRenderer
impl StringRenderer
Sourcepub fn light_module(self, v: char) -> Self
pub fn light_module(self, v: char) -> Self
Set the light module character.
Sourcepub fn dark_module(self, v: char) -> Self
pub fn dark_module(self, v: char) -> Self
Set the dark module character.
Sourcepub fn quiet_zone(self, v: bool) -> Self
pub fn quiet_zone(self, v: bool) -> Self
Set if quiet zone should be produced.
Sourcepub fn module_dimensions(self, w: usize, h: usize) -> Self
pub fn module_dimensions(self, w: usize, h: usize) -> Self
Set the module dimensions, in character count per module.
Sourcepub fn render_matrix(&self, matrix: &Matrix) -> String
pub fn render_matrix(&self, matrix: &Matrix) -> String
Render matrix to string.
Auto Trait Implementations§
impl Freeze for StringRenderer
impl RefUnwindSafe for StringRenderer
impl Send for StringRenderer
impl Sync for StringRenderer
impl Unpin for StringRenderer
impl UnwindSafe for StringRenderer
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