pub struct SelectionChange {
pub nodes: Vec<NodeId>,
pub edges: Vec<EdgeId>,
pub groups: Vec<GroupId>,
}Fields§
§nodes: Vec<NodeId>§edges: Vec<EdgeId>§groups: Vec<GroupId>Implementations§
Source§impl SelectionChange
impl SelectionChange
pub fn new(nodes: Vec<NodeId>, edges: Vec<EdgeId>, groups: Vec<GroupId>) -> Self
pub fn is_empty(&self) -> bool
pub fn nodes(&self) -> &[NodeId]
pub fn edges(&self) -> &[EdgeId]
pub fn groups(&self) -> &[GroupId]
pub fn into_parts(self) -> (Vec<NodeId>, Vec<EdgeId>, Vec<GroupId>)
Trait Implementations§
Source§impl Clone for SelectionChange
impl Clone for SelectionChange
Source§fn clone(&self) -> SelectionChange
fn clone(&self) -> SelectionChange
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 moreSource§impl Debug for SelectionChange
impl Debug for SelectionChange
impl Eq for SelectionChange
Source§impl PartialEq for SelectionChange
impl PartialEq for SelectionChange
Source§fn eq(&self, other: &SelectionChange) -> bool
fn eq(&self, other: &SelectionChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionChange
Auto Trait Implementations§
impl Freeze for SelectionChange
impl RefUnwindSafe for SelectionChange
impl Send for SelectionChange
impl Sync for SelectionChange
impl Unpin for SelectionChange
impl UnsafeUnpin for SelectionChange
impl UnwindSafe for SelectionChange
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.