pub enum C {
C(char),
N(u32),
}Expand description
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§
Implementations§
Trait Implementations§
impl Copy for C
impl Eq for C
Source§impl Ord for C
impl Ord for C
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for C
impl PartialOrd for C
impl StructuralPartialEq for C
Auto Trait Implementations§
impl Freeze for C
impl RefUnwindSafe for C
impl Send for C
impl Sync for C
impl Unpin for C
impl UnsafeUnpin for C
impl UnwindSafe for C
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more