pub fn select(&mut self, index: usize) {
        if index < self.layout.components.len() {
            self.selected_component = index;
        }
    }
/// Selects the component with the given index in order to modify its
/// settings. Only a single component is selected at any given time. You may
/// not provide an invalid index.
Selects the component with the given index in order to modify its
settings. Only a single component is selected at any given time. You may
not provide an invalid index.
Selects the component with the given index in order to modify its settings . Only a single component is selected at any given time . You may not provide an invalid index .
pub fn select(&mut self, index: usize) {
        if index < self.layout.components.len() {
            self.selected_component = index;
        }
    }
pub fn select ( & mut self , index : usize ) { if index < self . layout . components . len ( ) { self . selected_component = index ; } }
Selects the component with the given index in order to modify its
settings.
Selects the component with the given index in order to modify its settings .
&mut self
index
usize
&mut self
index
usize