pub struct Barcode { /* private fields */ }Implementations§
Source§impl Barcode
impl Barcode
Sourcepub fn new_aztec(text: &str, width: f32) -> Result<Self>
pub fn new_aztec(text: &str, width: f32) -> Result<Self>
Create a new Aztec barcode containing text with width width.
Sourcepub fn new_data_matrix(text: &str, width: f32) -> Result<Self>
pub fn new_data_matrix(text: &str, width: f32) -> Result<Self>
Create a new Data Matrix barcode containing text with width width.
Sourcepub fn new_pdf417(text: &str, width: f32) -> Result<Self>
pub fn new_pdf417(text: &str, width: f32) -> Result<Self>
Create a new PDF417 barcode containing text with width width.
Sourcepub fn new_qr_code(text: &str, width: f32) -> Result<Self>
pub fn new_qr_code(text: &str, width: f32) -> Result<Self>
Create a new QR Code containing text with width width.
Auto Trait Implementations§
impl Freeze for Barcode
impl RefUnwindSafe for Barcode
impl Send for Barcode
impl Sync for Barcode
impl Unpin for Barcode
impl UnwindSafe for Barcode
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
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.