callpass 0.3.1

Generate APRS passcodes
Documentation

An APRS-IS passcode generator and type.

Usage

The Callpass type is used for representing an APRS-IS passcode. It will transform a callsign into a passcode, as well integers, and can be used in place of integers where expecting a callpass.

let given_callsign = "x2yz".to_string();
let given_callpass = 29322i64;

We can generate a Callpass like so, using the From trait:

# use callpass::Callpass;
# let given_callsign = "x2yz".to_string();
// This step will generate an APRS-IS passcode.
let callpass: Callpass = given_callsign.into();

If we already have an APRS-IS passcode as an integer, we can make a Callpass from that as well to gain the benefits of type checking:

# use callpass::Callpass;
# let given_callpass = 29322i64;
let their_callpass: Callpass = given_callpass.into();

assert!(their_callpass == given_callpass);