fn node_id_to_widget_index(&self, id: usize) -> usize {
        for index in 0..self.nodes.len() {
            if self.nodes[index].id == id {
                return index;
            }
        }
        0
    }
/// Converts the id of a node to a widget index
Converts the id of a node to a widget index
Converts the id of a node to a widget index
fn node_id_to_widget_index(&self, id: usize) -> usize {
        for index in 0..self.nodes.len() {
            if self.nodes[index].id == id {
                return index;
            }
        }
        0
    }
fn node_id_to_widget_index ( & self , id : usize ) -> usize { for index in 0 .. self . nodes . len ( ) { if self . nodes [ index ] . id == id { return index ; } } 0 }
Converts the id of a node to a widget index
Converts the id of a node to a widget index
&self
id
usize
&self
id
usize