pub struct ConformanceDeleteSelectionContract {
pub key: Option<NodeGraphKeyCode>,
pub nodes: usize,
pub edges: usize,
pub groups: usize,
pub sticky_notes: usize,
pub commit_op_kinds: Vec<String>,
pub disconnected: Vec<EdgeConnection>,
}Expand description
Behavior contract for committing a delete-selection action and observing delete callbacks.
Fields§
§key: Option<NodeGraphKeyCode>§nodes: usize§edges: usize§groups: usize§sticky_notes: usize§commit_op_kinds: Vec<String>§disconnected: Vec<EdgeConnection>Implementations§
Source§impl ConformanceDeleteSelectionContract
impl ConformanceDeleteSelectionContract
pub fn new(nodes: usize, edges: usize) -> Self
pub fn for_key(self, key: KeyCode) -> Self
pub fn with_commit_op_kinds( self, op_kinds: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn with_deleted_groups(self, groups: usize) -> Self
pub fn with_deleted_sticky_notes(self, sticky_notes: usize) -> Self
pub fn with_disconnected( self, disconnected: impl IntoIterator<Item = EdgeConnection>, ) -> Self
Trait Implementations§
Source§impl Clone for ConformanceDeleteSelectionContract
impl Clone for ConformanceDeleteSelectionContract
Source§fn clone(&self) -> ConformanceDeleteSelectionContract
fn clone(&self) -> ConformanceDeleteSelectionContract
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<'de> Deserialize<'de> for ConformanceDeleteSelectionContract
impl<'de> Deserialize<'de> for ConformanceDeleteSelectionContract
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 ConformanceDeleteSelectionContract
impl PartialEq for ConformanceDeleteSelectionContract
Source§fn eq(&self, other: &ConformanceDeleteSelectionContract) -> bool
fn eq(&self, other: &ConformanceDeleteSelectionContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConformanceDeleteSelectionContract
Auto Trait Implementations§
impl Freeze for ConformanceDeleteSelectionContract
impl RefUnwindSafe for ConformanceDeleteSelectionContract
impl Send for ConformanceDeleteSelectionContract
impl Sync for ConformanceDeleteSelectionContract
impl Unpin for ConformanceDeleteSelectionContract
impl UnsafeUnpin for ConformanceDeleteSelectionContract
impl UnwindSafe for ConformanceDeleteSelectionContract
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