[−][src]Struct qrcode53bytes::renderstring::StringRenderer
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
impl RefUnwindSafe for StringRenderer
[src]
impl Send for StringRenderer
[src]
impl Sync for StringRenderer
[src]
impl Unpin for StringRenderer
[src]
impl UnwindSafe for StringRenderer
[src]
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,
pub 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.
pub 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>,