pub struct PaneSelectionState {
pub anchor: Option<PaneId>,
pub selected: BTreeSet<PaneId>,
}Expand description
Multi-pane selection state for group interactions.
Fields§
§anchor: Option<PaneId>§selected: BTreeSet<PaneId>Implementations§
Source§impl PaneSelectionState
impl PaneSelectionState
Sourcepub fn shift_toggle(&mut self, pane_id: PaneId)
pub fn shift_toggle(&mut self, pane_id: PaneId)
Toggle selection with shift-like additive semantics.
pub fn as_sorted_vec(&self) -> Vec<PaneId>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for PaneSelectionState
impl Clone for PaneSelectionState
Source§fn clone(&self) -> PaneSelectionState
fn clone(&self) -> PaneSelectionState
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 PaneSelectionState
impl Debug for PaneSelectionState
Source§impl Default for PaneSelectionState
impl Default for PaneSelectionState
Source§fn default() -> PaneSelectionState
fn default() -> PaneSelectionState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaneSelectionState
impl<'de> Deserialize<'de> for PaneSelectionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaneSelectionState
impl PartialEq for PaneSelectionState
Source§impl Serialize for PaneSelectionState
impl Serialize for PaneSelectionState
impl Eq for PaneSelectionState
impl StructuralPartialEq for PaneSelectionState
Auto Trait Implementations§
impl Freeze for PaneSelectionState
impl RefUnwindSafe for PaneSelectionState
impl Send for PaneSelectionState
impl Sync for PaneSelectionState
impl Unpin for PaneSelectionState
impl UnsafeUnpin for PaneSelectionState
impl UnwindSafe for PaneSelectionState
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