pub enum NodeChange {
Show 19 variants
Add {
id: NodeId,
node: Node,
},
Remove {
id: NodeId,
},
Position {
id: NodeId,
position: CanvasPoint,
},
Origin {
id: NodeId,
origin: Option<NodeOrigin>,
},
Kind {
id: NodeId,
kind: NodeKindKey,
},
KindVersion {
id: NodeId,
kind_version: u32,
},
Selectable {
id: NodeId,
selectable: Option<bool>,
},
Focusable {
id: NodeId,
focusable: Option<bool>,
},
Draggable {
id: NodeId,
draggable: Option<bool>,
},
Connectable {
id: NodeId,
connectable: Option<bool>,
},
Deletable {
id: NodeId,
deletable: Option<bool>,
},
Parent {
id: NodeId,
parent: Option<GroupId>,
},
Extent {
id: NodeId,
extent: Option<NodeExtent>,
},
ExpandParent {
id: NodeId,
expand_parent: Option<bool>,
},
Size {
id: NodeId,
size: Option<CanvasSize>,
},
Hidden {
id: NodeId,
hidden: bool,
},
Collapsed {
id: NodeId,
collapsed: bool,
},
Data {
id: NodeId,
data: Value,
},
Ports {
id: NodeId,
ports: Vec<PortId>,
},
}Expand description
Changes targeting nodes (graph-owned).
Variants§
Add
Remove
Position
Origin
Kind
KindVersion
Selectable
Focusable
Draggable
Connectable
Deletable
Parent
Extent
ExpandParent
Size
Hidden
Collapsed
Data
Ports
Trait Implementations§
Source§impl Clone for NodeChange
impl Clone for NodeChange
Source§fn clone(&self) -> NodeChange
fn clone(&self) -> NodeChange
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 NodeChange
impl Debug for NodeChange
Source§impl<'de> Deserialize<'de> for NodeChange
impl<'de> Deserialize<'de> for NodeChange
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
Auto Trait Implementations§
impl Freeze for NodeChange
impl RefUnwindSafe for NodeChange
impl Send for NodeChange
impl Sync for NodeChange
impl Unpin for NodeChange
impl UnsafeUnpin for NodeChange
impl UnwindSafe for NodeChange
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