pub struct SelectState {
pub items: Vec<String>,
pub selected: usize,
pub open: bool,
pub placeholder: String,
/* private fields */
}Expand description
State for a dropdown select widget.
Renders as a single-line button showing the selected option. When activated, expands into a vertical list overlay for picking an option.
Fields§
§items: Vec<String>§selected: usize§open: bool§placeholder: StringImplementations§
Auto Trait Implementations§
impl Freeze for SelectState
impl RefUnwindSafe for SelectState
impl Send for SelectState
impl Sync for SelectState
impl Unpin for SelectState
impl UnsafeUnpin for SelectState
impl UnwindSafe for SelectState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more