Struct qrcode_png::QrCode
source · [−]pub struct QrCode { /* private fields */ }
Expand description
Define QR code
Implementations
sourceimpl QrCode
impl QrCode
sourcepub fn new<T: AsRef<[u8]>>(
content: T,
ecl: QrCodeEcc
) -> Result<Self, DataTooLong>
pub fn new<T: AsRef<[u8]>>(
content: T,
ecl: QrCodeEcc
) -> Result<Self, DataTooLong>
Create a QR code
sourcepub fn zoom(&mut self, zoom: u32) -> &mut Self
pub fn zoom(&mut self, zoom: u32) -> &mut Self
Enlarge the QR code according to the original scale, Default value: 1
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QrCode
impl Send for QrCode
impl Sync for QrCode
impl Unpin for QrCode
impl UnwindSafe for QrCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more