pub fn build_with_ref(self, ui: &Ui<'_>, selected: &mut bool) -> bool {
        if self.selected(*selected).build(ui) {
            *selected = !*selected;
            true
        } else {
            false
        }
    }
/// Builds the menu item using a mutable reference to selected state.
Builds the menu item using a mutable reference to selected state.
Builds the menu item using a mutable reference to selected state .
pub fn build_with_ref(self, ui: &Ui<'_>, selected: &mut bool) -> bool {
        if self.selected(*selected).build(ui) {
            *selected = !*selected;
            true
        } else {
            false
        }
    }
pub fn build_with_ref ( self , ui : & Ui < ' _ > , selected : & mut bool ) -> bool { if self . selected ( * selected ) . build ( ui ) { * selected = ! * selected ; true } else { false } }
Builds the menu item using a mutable reference to selected state.
Builds the menu item using a mutable reference to selected state .
self
ui
&Ui<'_>
selected
&mut bool
self
ui
&Ui<'_>
selected
&mut bool