pub enum NodeDragStartSelectionAction {
Unchanged,
Clear,
SelectOnly(NodeId),
Add(NodeId),
Remove(NodeId),
}Expand description
Selection mutation implied by starting a node drag.
Variants§
Unchanged
Keep the current selection unchanged.
Clear
Clear node, edge, and group selection.
SelectOnly(NodeId)
Select only the dragged node and clear edge/group selection.
Add(NodeId)
Add the dragged node to the existing node selection.
Remove(NodeId)
Remove the dragged node from the existing node selection.
Implementations§
Source§impl NodeDragStartSelectionAction
impl NodeDragStartSelectionAction
pub fn is_unchanged(self) -> bool
pub fn apply_to_view_state(self, view_state: &mut NodeGraphViewState)
Trait Implementations§
Source§impl Clone for NodeDragStartSelectionAction
impl Clone for NodeDragStartSelectionAction
Source§fn clone(&self) -> NodeDragStartSelectionAction
fn clone(&self) -> NodeDragStartSelectionAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeDragStartSelectionAction
Source§impl Debug for NodeDragStartSelectionAction
impl Debug for NodeDragStartSelectionAction
impl Eq for NodeDragStartSelectionAction
Source§impl PartialEq for NodeDragStartSelectionAction
impl PartialEq for NodeDragStartSelectionAction
Source§fn eq(&self, other: &NodeDragStartSelectionAction) -> bool
fn eq(&self, other: &NodeDragStartSelectionAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeDragStartSelectionAction
Auto Trait Implementations§
impl Freeze for NodeDragStartSelectionAction
impl RefUnwindSafe for NodeDragStartSelectionAction
impl Send for NodeDragStartSelectionAction
impl Sync for NodeDragStartSelectionAction
impl Unpin for NodeDragStartSelectionAction
impl UnsafeUnpin for NodeDragStartSelectionAction
impl UnwindSafe for NodeDragStartSelectionAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.