[−][src]Struct qrcode53bytes::renderstring::StringRenderer
A string renderer for converting a QR code into a representation suitable for text output.
Fields
light: char
dark: char
module_w: usize
module_h: usize
qz: bool
Implementations
impl StringRenderer
[src]
pub fn new() -> Self
[src]
Create a new renderer.
pub fn light_module(self, v: char) -> Self
[src]
Set the light module character.
pub fn dark_module(self, v: char) -> Self
[src]
Set the dark module character.
pub fn quiet_zone(self, v: bool) -> Self
[src]
Set if quiet zone should be produced.
pub fn module_dimensions(self, w: usize, h: usize) -> Self
[src]
Set the module dimensions, in character count per module.
pub fn render(&self, qr: &Qr) -> String
[src]
Render QR to string.
pub fn render_matrix(&self, matrix: &Matrix) -> String
[src]
Render matrix to string.
fn qz_lines(&self, s: &mut String)
[src]
fn qz_chars(&self, s: &mut String)
[src]
Auto Trait Implementations
impl RefUnwindSafe for StringRenderer
impl Send for StringRenderer
impl Sync for StringRenderer
impl Unpin for StringRenderer
impl UnwindSafe for StringRenderer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,