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§
Trait Implementations§
Source§impl Default for SelectState
impl Default for SelectState
Source§fn default() -> SelectState
fn default() -> SelectState
Returns the “default value” for a type. Read more
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