Expand description
§Description
Barcode-rs is an utility crate for encoding data into several supported formats
Currently supported formats:
- Code11,
- EAN13,
- EAN8,
- Interleaved 2 of 5,
- Standard 2 of 5,
§Usage
let my_data = "7501031311309";
let result: bit_vec::BitVec = my_data.barcode_encode(BarcodeFormat::EAN13).unwrap();
let my_data = "7501031311309".chars().collect::<Vec<char>>();
let result: bit_vec::BitVec = barcode_rs::encode(&my_data, BarcodeFormat::EAN13).unwrap();
Modules§
Enums§
- Barcode
Format - Supported Barcode Formats
- Encoding
Error - Encoding Error
Functions§
- encode
- Main encoding function, see
BarcodeFormat
for available formats