fn compared_microchips(&self, robot: &Robot, memo: &mut HashMap<Id, Microchip2>) -> Microchip2 {
            if memo.contains_key(&robot.id) {
                *memo.get(&robot.id).unwrap()
            } else {
                let pair = Microchip2::new(
                    self.given_microchip(robot.from.0, memo),
                    self.given_microchip(robot.from.1, memo)
                );
                memo.insert(robot.id, pair);
                pair
            }
        }
/// Returns the microchip pair compared by the given `robot`.
Returns the microchip pair compared by the given `robot`.
Returns the microchip pair compared by the given ` robot ` .
fn compared_microchips(&self, robot: &Robot, memo: &mut HashMap<Id, Microchip2>) -> Microchip2 {
            if memo.contains_key(&robot.id) {
                *memo.get(&robot.id).unwrap()
            } else {
                let pair = Microchip2::new(
                    self.given_microchip(robot.from.0, memo),
                    self.given_microchip(robot.from.1, memo)
                );
                memo.insert(robot.id, pair);
                pair
            }
        }
fn compared_microchips ( & self , robot : & Robot , memo : & mut HashMap < Id , Microchip2 > ) -> Microchip2 { if memo . contains_key ( & robot . id ) { * memo . get ( & robot . id ) . unwrap ( ) } else { let pair = Microchip2 :: new ( self . given_microchip ( robot . from . 0 , memo ) , self . given_microchip ( robot . from . 1 , memo ) ) ; memo . insert ( robot . id , pair ) ; pair } }
Returns the microchip pair compared by the given `robot`.
Returns the microchip pair compared by the given ` robot ` .
&self
robot
&Robot
memo
&mut HashMap<Id, Microchip2>
&self
robot
&Robot
memo
&mut HashMap<Id, Microchip2>