pub enum TF {
Standard(Vec<u8>),
Interleaved(Vec<u8>),
}
Expand description
The 2-of-5 barcode type.
Variants§
Standard(Vec<u8>)
The standard 2-of-5 barcode type.
Interleaved(Vec<u8>)
The interleaved 2-of-5 barcode type.
Implementations§
source§impl TF
impl TF
sourcepub fn interleaved<T: AsRef<str>>(data: T) -> Result<TF>
pub fn interleaved<T: AsRef<str>>(data: T) -> Result<TF>
Creates a new ITF barcode. If the length of the given data is odd, a checksum value will be computed and appended to the data for encoding.
Returns Result<TF::Interleaved, Error> indicating parse success.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TF
impl RefUnwindSafe for TF
impl Send for TF
impl Sync for TF
impl Unpin for TF
impl UnwindSafe for TF
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