[−][src]Struct qrcode53bytes::rendersvg::SvgRenderer
A string renderer for converting a QR code into svg.
Fields
light: Color
dark: Color
w: usize
h: usize
qz: bool
Implementations
impl SvgRenderer
[src]
pub fn new() -> Self
[src]
Create a new renderer.
pub fn light_module(self, v: Color) -> Self
[src]
Set the light module color. Will also be the color of the quiet zone, if relevant.
pub fn dark_module(self, v: Color) -> Self
[src]
Set the dark module color.
pub fn quiet_zone(self, v: bool) -> Self
[src]
Set if quiet zone should be produced.
pub fn dimensions(self, w: usize, h: usize) -> Self
[src]
Set the dimensions of the output, in pixels. Includes the quiet zone, if relevant.
pub fn render(&self, qr: &Qr) -> String
[src]
Render QR.
pub fn render_matrix(&self, matrix: &Matrix) -> String
[src]
Render matrix.
Auto Trait Implementations
impl RefUnwindSafe for SvgRenderer
impl Send for SvgRenderer
impl Sync for SvgRenderer
impl Unpin for SvgRenderer
impl UnwindSafe for SvgRenderer
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>,