Enum track8_program::C[][src]

pub enum C {
    C(char),
    N(u32),
}

Represents a single character in one of the programs on the tape.

Because unicode doesn't define valid characters for every single 32-bit bitmask, this value allows switching between interpreting the character as a number or as a unicode codepoint.

Variants

Methods

impl C
[src]

Converts self into a C::C when self is C::N, identity otherwise

#Panics When C::N is an invalid unicode codepoint.

Trait Implementations

impl Clone for C
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for C
[src]

impl Debug for C
[src]

Formats the value using the given formatter. Read more

impl PartialOrd for C
[src]

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

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

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

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

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

impl Ord for C
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for C
[src]

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

This method tests for !=.

impl Eq for C
[src]

impl From<char> for C
[src]

Performs the conversion.

impl From<u32> for C
[src]

Performs the conversion.

impl From<C> for char
[src]

Performs the conversion.

impl From<C> for u32
[src]

Performs the conversion.

impl Display for C
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for C

impl Sync for C