pub struct SimplePanelState {
pub open: HashMap<String, bool>,
pub hidden: HashMap<String, bool>,
pub dragging: Option<String>,
pub sizes: HashMap<String, f64>,
}Expand description
Simple implementation of PanelState for prototyping
Fields§
§open: HashMap<String, bool>§dragging: Option<String>§sizes: HashMap<String, f64>Implementations§
Trait Implementations§
Source§impl Clone for SimplePanelState
impl Clone for SimplePanelState
Source§fn clone(&self) -> SimplePanelState
fn clone(&self) -> SimplePanelState
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 SimplePanelState
impl Debug for SimplePanelState
Source§impl Default for SimplePanelState
impl Default for SimplePanelState
Source§fn default() -> SimplePanelState
fn default() -> SimplePanelState
Returns the “default value” for a type. Read more
Source§impl PanelState for SimplePanelState
impl PanelState for SimplePanelState
fn is_open(&self, panel_id: &str) -> bool
fn is_dragging(&self, panel_id: &str) -> bool
fn size(&self, panel_id: &str) -> f64
fn set_open(&mut self, panel_id: &str, open: bool)
fn set_dragging(&mut self, panel_id: &str, dragging: bool)
fn set_size(&mut self, panel_id: &str, size: f64)
Auto Trait Implementations§
impl Freeze for SimplePanelState
impl RefUnwindSafe for SimplePanelState
impl Send for SimplePanelState
impl Sync for SimplePanelState
impl Unpin for SimplePanelState
impl UnsafeUnpin for SimplePanelState
impl UnwindSafe for SimplePanelState
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