pub struct Barcode(/* private fields */);
Implementations§
Source§impl Barcode
impl Barcode
pub fn is_valid(&self) -> bool
pub fn format(&self) -> BarcodeFormat
pub fn content_type(&self) -> ContentType
pub fn text(&self) -> String
pub fn ec_level(&self) -> String
pub fn symbology_identifier(&self) -> String
pub fn position(&self) -> Position
pub fn orientation(&self) -> i32
pub fn has_eci(&self) -> bool
pub fn is_inverted(&self) -> bool
pub fn is_mirrored(&self) -> bool
pub fn line_count(&self) -> i32
pub fn bytes(&self) -> Vec<u8> ⓘ
pub fn bytes_eci(&self) -> Vec<u8> ⓘ
pub fn error(&self) -> BarcodeError
pub fn to_svg_with(&self, opts: &BarcodeWriter) -> Result<String, Error>
pub fn to_svg(&self) -> Result<String, Error>
pub fn to_image_with(&self, opts: &BarcodeWriter) -> Result<Image, Error>
pub fn to_image(&self) -> Result<Image, Error>
Trait Implementations§
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