[−][src]Enum aoc_2018_state_machine::OpCode
Variants
AddR
addr (add register) stores into register C the result of adding register A and register B.
AddI
addi (add immediate) stores into register C the result of adding register A and value B.
MulR
mulr (multiply register) stores into register C the result of multiplying register A and register B.
MulI
muli (multiply immediate) stores into register C the result of multiplying register A and value B.
BAnR
banr (bitwise AND reigster) stores into register C the result of the bitwise AND register A and register B.
BAnI
bani (bitwise AND immediate) stores into register C the result of the bitwise AND of register A and value B.
BOrR
borr (bitwise OR register) stores into register C the result of the bitwise OR of register A and register B.
BOrI
bori (bitwise OR immediate) stores into register C the result of the bitwise OR of register A and value B.
SetR
setr (set register) copies the contents of register A into register C. (Input B is ignored.)
SetI
seti (set immediate) stores value A into register C. (Input B is ignored.)
GtIR
gtir (greater-than immediate/register) sets register C to 1 if value A is greater than register B. Otherwise, register C is set to 0.
GtRI
gtri (greater-than register/immediate) sets register C to 1 if register A is greater than value B. Otherwise, register C is set to 0.
GtRR
gtrr (greater-than register/register) sets register C to 1 if register A is greater than register B. Otherwise, register C is set to 0.
EqIR
eqir (equal immediate/register) sets register C to 1 if value A is equal to register B. Otherwise, register C is set to 0
EqRI
eqri (equal register/immediate) sets register C to 1 if register A is equal to value B. Otherwise, register C is set to 0.
EqRR
eqrr (equal register/register) sets register C to 1 if register A is equal to register B. Otherwise, register C is set to 0.
Methods
impl OpCode
[src]
impl OpCode
impl OpCode
[src]
impl OpCode
Trait Implementations
impl Eq for OpCode
[src]
impl Eq for OpCode
impl Into<&'static str> for OpCode
[src]
impl Into<&'static str> for OpCode
impl PartialOrd<OpCode> for OpCode
[src]
impl PartialOrd<OpCode> for OpCode
fn partial_cmp(&self, other: &OpCode) -> Option<Ordering> | [src] |
| 1.0.0 [src] |
This method tests less than (for self
and other
) and is used by the <
operator. Read more
| 1.0.0 [src] |
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
| 1.0.0 [src] |
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
| 1.0.0 [src] |
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Copy for OpCode
[src]
impl Copy for OpCode
impl PartialEq<OpCode> for OpCode
[src]
impl PartialEq<OpCode> for OpCode
fn eq(&self, other: &OpCode) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Clone for OpCode
[src]
impl Clone for OpCode
fn clone(&self) -> OpCode | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Ord for OpCode
[src]
impl Ord for OpCode
fn cmp(&self, other: &OpCode) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl Debug for OpCode
[src]
impl Debug for OpCode
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |