Struct barcoders::sym::code128::Code128 [] [src]

pub struct Code128(_);

The Code128 barcode type.

Methods

impl Code128

fn new(data: String) -> Result<Code128>

Creates a new barcode. Returns Result indicating parse success.

fn checksum_value(&self) -> u8

Calculates the checksum index using a modulo-103 algorithm.

fn encode(&self) -> Vec<u8>

Encodes the barcode. Returns a Vec of binary digits.

Trait Implementations

Derived Implementations

impl Debug for Code128

fn fmt(&self, __arg_0: &mut Formatter) -> Result