pub struct SimpleDropdownState {
pub open_state: HashMap<String, bool>,
pub hovered_items: HashMap<String, Option<usize>>,
}Expand description
Simple implementation of DropdownState for prototyping
Fields§
§open_state: HashMap<String, bool>§hovered_items: HashMap<String, Option<usize>>Implementations§
Trait Implementations§
Source§impl Clone for SimpleDropdownState
impl Clone for SimpleDropdownState
Source§fn clone(&self) -> SimpleDropdownState
fn clone(&self) -> SimpleDropdownState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleDropdownState
impl Debug for SimpleDropdownState
Source§impl Default for SimpleDropdownState
impl Default for SimpleDropdownState
Source§fn default() -> SimpleDropdownState
fn default() -> SimpleDropdownState
Returns the “default value” for a type. Read more
Source§impl DropdownState for SimpleDropdownState
impl DropdownState for SimpleDropdownState
Auto Trait Implementations§
impl Freeze for SimpleDropdownState
impl RefUnwindSafe for SimpleDropdownState
impl Send for SimpleDropdownState
impl Sync for SimpleDropdownState
impl Unpin for SimpleDropdownState
impl UnsafeUnpin for SimpleDropdownState
impl UnwindSafe for SimpleDropdownState
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