[][src]Struct qrcode53bytes::renderstring::StringRenderer

pub struct StringRenderer { /* fields omitted */ }

A string renderer for converting a QR code into a representation suitable for text output.

Implementations

impl StringRenderer[src]

pub fn new() -> Self[src]

Create a new renderer.

pub fn light_module(mut self: Self, v: char) -> Self[src]

Set the light module character.

pub fn dark_module(mut self: Self, v: char) -> Self[src]

Set the dark module character.

pub fn quiet_zone(mut self: Self, v: bool) -> Self[src]

Set if quiet zone should be produced.

pub fn module_dimensions(mut self: 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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.