pub fn remapped(&self, host_target_map: &HashMap<u8, u8>) -> Response {
        let target_pin = host_target_map.get(&self.pin_no)
            .expect("Cannot remap device response because pin mapping does not exist.");

        Response {
            pin_no: *target_pin,
            .. *self
        }
    }
/// Translates the pin numbering to the target-side numbering.
Translates the pin numbering to the target-side numbering.
Translates the pin numbering to the target - side numbering .
pub fn remapped(&self, host_target_map: &HashMap<u8, u8>) -> Response {
        let target_pin = host_target_map.get(&self.pin_no)
            .expect("Cannot remap device response because pin mapping does not exist.");
        Response {
            pin_no: *target_pin,
            .. *self
        }
    }
pub fn remapped ( & self , host_target_map : & HashMap < u8 , u8 > ) -> Response { let target_pin = host_target_map . get ( & self . pin_no ) . expect ( " " ) ; Response { pin_no : * target_pin , .. * self } }
Translates the pin numbering to the target-side numbering.
Translates the pin numbering to the target - side numbering .
&self
host_target_map
&HashMap<u8, u8>
&self
host_target_map
&HashMap<u8, u8>