Struct callpass::Callpass [] [src]

pub struct Callpass(_);

This type will generate and represent an APRS-IS passcode.

Callpass generation

When given a callsign, an APRS-IS passcode will be generated.

let callpass: Callpass = "x2yz".into();

Comparisons

Its value can be directly compared to other numbers.

assert!(callpass == 29322);

Representation

A Callpass can also be used in place of integers.

let given_passcode: Callpass = 29322.into();
assert!(callpass == given_passcode);

A Callpass can also be used as an integer where required.

fn i64_eater(lunch: i64) {}

i64_eater(callpass.into())

Modification

A Callpass will not allow modification (without being casted).

This example deliberately fails to compile
let changed_callpass = callpass + 4;
This example deliberately fails to compile
callpass.0 = 12345;

Trait Implementations

impl Debug for Callpass
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Callpass
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Callpass
[src]

impl PartialEq for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Ord for Callpass
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Callpass
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Into<u16> for Callpass
[src]

[src]

Performs the conversion.

impl Into<i16> for Callpass
[src]

[src]

Performs the conversion.

impl Into<u32> for Callpass
[src]

[src]

Performs the conversion.

impl Into<i32> for Callpass
[src]

[src]

Performs the conversion.

impl Into<u64> for Callpass
[src]

[src]

Performs the conversion.

impl Into<i64> for Callpass
[src]

[src]

Performs the conversion.

impl From<u16> for Callpass
[src]

[src]

Performs the conversion.

impl From<i16> for Callpass
[src]

[src]

Performs the conversion.

impl From<u32> for Callpass
[src]

[src]

Performs the conversion.

impl From<i32> for Callpass
[src]

[src]

Performs the conversion.

impl From<u64> for Callpass
[src]

[src]

Performs the conversion.

impl From<i64> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a u16> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a i16> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a u32> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a i32> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a u64> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a i64> for Callpass
[src]

[src]

Performs the conversion.

impl PartialEq<u16> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<i16> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<u32> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<i32> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<u64> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<i64> for Callpass
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for Callpass
[src]

[src]

Formats the value using the given formatter. Read more

impl Into<String> for Callpass
[src]

[src]

Performs the conversion.

impl From<String> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a String> for Callpass
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for Callpass
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Callpass

impl Sync for Callpass