pub enum BarcodeImage {
Linear {
modules: Vec<bool>,
text: String,
},
Matrix {
width: usize,
modules: Vec<bool>,
},
}Expand description
Um código pronto para desenhar.
Variants§
Linear
De barras (1D): os módulos da esquerda para a direita (true = barra escura), e o
texto legível que vai embaixo.
Matrix
Em matriz (2D, como o QR Code): width módulos por linha, linha a linha.
Trait Implementations§
Source§impl Clone for BarcodeImage
impl Clone for BarcodeImage
Source§impl Debug for BarcodeImage
impl Debug for BarcodeImage
impl Eq for BarcodeImage
Source§impl PartialEq for BarcodeImage
impl PartialEq for BarcodeImage
impl StructuralPartialEq for BarcodeImage
Auto Trait Implementations§
impl Forget for BarcodeImage
impl Freeze for BarcodeImage
impl Move for BarcodeImage
impl RefUnwindSafe for BarcodeImage
impl Send for BarcodeImage
impl Sync for BarcodeImage
impl Unpin for BarcodeImage
impl UnsafeUnpin for BarcodeImage
impl UnwindSafe for BarcodeImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more