pub struct NodeGraphPatch { /* private fields */ }Expand description
Full-fidelity committed graph patch.
This is the primary commit payload for controlled integrations. It preserves every
GraphOp, including ports, groups, sticky notes, imports, symbols, and other resources.
Implementations§
Source§impl NodeGraphPatch
impl NodeGraphPatch
pub fn new(transaction: GraphTransaction) -> Self
pub fn transaction(&self) -> &GraphTransaction
pub fn footprint(&self) -> &GraphMutationFootprint
pub fn into_transaction(self) -> GraphTransaction
pub fn into_parts(self) -> (GraphTransaction, GraphMutationFootprint)
pub fn ops(&self) -> &[GraphOp]
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for NodeGraphPatch
impl Clone for NodeGraphPatch
Source§fn clone(&self) -> NodeGraphPatch
fn clone(&self) -> NodeGraphPatch
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 NodeGraphPatch
impl Debug for NodeGraphPatch
Source§impl Default for NodeGraphPatch
impl Default for NodeGraphPatch
Source§fn default() -> NodeGraphPatch
fn default() -> NodeGraphPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeGraphPatch
impl<'de> Deserialize<'de> for NodeGraphPatch
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 From<GraphTransaction> for NodeGraphPatch
impl From<GraphTransaction> for NodeGraphPatch
Source§fn from(transaction: GraphTransaction) -> Self
fn from(transaction: GraphTransaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeGraphPatch
impl RefUnwindSafe for NodeGraphPatch
impl Send for NodeGraphPatch
impl Sync for NodeGraphPatch
impl Unpin for NodeGraphPatch
impl UnsafeUnpin for NodeGraphPatch
impl UnwindSafe for NodeGraphPatch
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