Enum advent_solutions::advent2017::day18::Value
[−]
[src]
pub enum Value {
Literal(isize),
Register(char),
}Many of the instructions can take either a register (a single letter) or a number. The value of a register is the integer it contains; the value of a number is that number.
Variants
Literal(isize)Register(char)
Methods
impl Value[src]
Trait Implementations
impl Copy for Value[src]
impl Clone for Value[src]
fn clone(&self) -> Value[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Value[src]
fn eq(&self, __arg_0: &Value) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Value) -> bool[src]
This method tests for !=.
impl Eq for Value[src]
impl Debug for Value[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Hash for Value[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more