pub fn select_port(ui: &mut egui::Ui, port: &mut Port) {
    ui.horizontal_wrapped(|ui| {
        egui::ComboBox::from_label(format!(
            "Family [{}] - Subfamily [{}]",
            port.family(),
            port.subfamily()
        ))
        .selected_text(port.to_string())
        .show_ui(ui, |ui| {
            for port_choice in Port::into_enum_iter() {
                ui.selectable_value(port, port_choice, port_choice.to_string());
            }
        });
    });
}
/// Renders the dropdown menu to select one of the supported
/// hardware ports.
Renders the dropdown menu to select one of the supported
hardware ports.
Renders the dropdown menu to select one of the supported hardware ports .
pub fn select_port(ui: &mut egui::Ui, port: &mut Port) {
    ui.horizontal_wrapped(|ui| {
        egui::ComboBox::from_label(format!(
            "Family [{}] - Subfamily [{}]",
            port.family(),
            port.subfamily()
        ))
        .selected_text(port.to_string())
        .show_ui(ui, |ui| {
            for port_choice in Port::into_enum_iter() {
                ui.selectable_value(port, port_choice, port_choice.to_string());
            }
        });
    });
}
pub fn select_port ( ui : & mut egui :: Ui , port : & mut Port ) { ui . horizontal_wrapped ( | ui | { egui :: ComboBox :: from_label ( format ! ( " " port family ( ) port subfamily ( ) ) ) . selected_text ( port . to_string ( ) ) . show_ui ( ui , | ui | { for port_choice in Port :: into_enum_iter ( ) { ui . selectable_value ( port , port_choice , port_choice . to_string ( ) ) ; } } ) ; } ) ; }
Renders the dropdown menu to select one of the supported
hardware ports.
Renders the dropdown menu to select one of the supported hardware ports .
ui
&mut egui::Ui
port
&mut Port
ui
&mut egui::Ui
port
&mut Port