usecrate::sys;usecrate::ui::Ui;/// Tracks a combo box that can be ended by calling `.end()` or by dropping
#[must_use]pubstructComboBoxToken<'ui>{_ui:&'ui Ui,
}impl<'ui>ComboBoxToken<'ui>{/// Creates a new combo box token
pub(super)fnnew(ui:&'ui Ui)->Self{
ComboBoxToken { _ui: ui }}/// Ends the combo box
pubfnend(self){// The drop implementation will handle the actual ending
}}implDrop forComboBoxToken<'_>{fndrop(&mutself){unsafe{sys::igEndCombo();}}}