pub struct WiegandFormat {
    pub parity_even: usize,
    pub parity_odd: usize,
    pub facility_code: (usize, usize),
    pub card_number: (usize, usize),
}

Fields

parity_even: usizeparity_odd: usizefacility_code: (usize, usize)card_number: (usize, usize)

Implementations

decode a (facility_code, card_number) tuple from an integer sourced from an RFID scan

assumes i is not padded

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.