fn select_entry(&mut self, key: u16) {
        self.cur_offset = 0;
        if (key & FW_CFG_ENTRY_MASK) >= self.max_entry() {
            self.cur_entry = FW_CFG_INVALID;
        } else {
            self.cur_entry = key;

            // unwrap() is safe because we have checked the range of `key`.
            let selected_entry = self.get_entry_mut().unwrap();
            if let Some(ref mut cb) = selected_entry.select_cb {
                cb.select_callback();
            }
        }
    }
/// Select the entry by the key specified
Select the entry by the key specified
Select the entry by the key specified
fn select_entry(&mut self, key: u16) {
        self.cur_offset = 0;
        if (key & FW_CFG_ENTRY_MASK) >= self.max_entry() {
            self.cur_entry = FW_CFG_INVALID;
        } else {
            self.cur_entry = key;
            // unwrap() is safe because we have checked the range of `key`.
            let selected_entry = self.get_entry_mut().unwrap();
            if let Some(ref mut cb) = selected_entry.select_cb {
                cb.select_callback();
            }
        }
    }
fn select_entry ( & mut self , key : u16 ) { self . cur_offset = 0 ; if ( key & FW_CFG_ENTRY_MASK ) >= self . max_entry ( ) { self . cur_entry = FW_CFG_INVALID ; } else { self . cur_entry = key ; // unwrap() is safe because we have checked the range of `key`. let selected_entry = self . get_entry_mut ( ) . unwrap ( ) ; if let Some ( ref mut cb ) = selected_entry . select_cb { cb . select_callback ( ) ; } } }
Select the entry by the key specified
Select the entry by the key specified
&mut self
key
u16
&mut self
key
u16