Enum track8_program::C [−][src]
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
C(char)
N(u32)
Methods
impl C
[src]
impl C
pub fn norm(&self) -> C
[src]
pub fn norm(&self) -> C
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]
impl Clone for C
fn clone(&self) -> C
[src]
fn clone(&self) -> C
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for C
[src]
impl Copy for C
impl Debug for C
[src]
impl Debug for C
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for C
[src]
impl PartialOrd for C
fn partial_cmp(&self, other: &C) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &C) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &C) -> bool
[src]
fn lt(&self, other: &C) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &C) -> bool
[src]
fn le(&self, other: &C) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &C) -> bool
[src]
fn gt(&self, other: &C) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &C) -> bool
[src]
fn ge(&self, other: &C) -> bool
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]
impl Ord for C
fn cmp(&self, other: &C) -> Ordering
[src]
fn cmp(&self, other: &C) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for C
[src]
impl PartialEq for C
fn eq(&self, other: &C) -> bool
[src]
fn eq(&self, other: &C) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &C) -> bool
[src]
fn ne(&self, other: &C) -> bool
This method tests for !=
.
impl Eq for C
[src]
impl Eq for C
impl From<char> for C
[src]
impl From<char> for C
impl From<u32> for C
[src]
impl From<u32> for C
impl From<C> for char
[src]
impl From<C> for char
impl From<C> for u32
[src]
impl From<C> for u32
impl Display for C
[src]
impl Display for C