pub struct GraphMutationPlanner<'a> { /* private fields */ }Expand description
Plans graph mutations while preserving v1 Graph storage invariants.
Implementations§
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn add_binding_op( &self, id: BindingId, binding: Binding, ) -> Result<GraphOp, GraphMutationError>
pub fn add_binding_tx( &self, id: BindingId, binding: Binding, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
pub fn remove_binding_op( &self, id: BindingId, ) -> Result<GraphOp, GraphMutationError>
pub fn remove_binding_tx( &self, id: BindingId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn add_edge_tx( &self, id: EdgeId, edge: Edge, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
pub fn add_edge_op( &self, id: EdgeId, edge: Edge, ) -> Result<GraphOp, GraphMutationError>
pub fn remove_edge_op(&self, id: EdgeId) -> Result<GraphOp, GraphMutationError>
pub fn remove_edge_tx( &self, id: EdgeId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn remove_group_op( &self, id: GroupId, ) -> Result<GraphOp, GraphMutationError>
pub fn remove_group_tx( &self, id: GroupId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn add_node_with_ports_tx( &self, id: NodeId, node: Node, ports: impl IntoIterator<Item = (PortId, Port)>, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
pub fn add_node_with_ports_ops( &self, id: NodeId, node: Node, ports: impl IntoIterator<Item = (PortId, Port)>, ) -> Result<Vec<GraphOp>, GraphMutationError>
pub fn remove_node_op(&self, id: NodeId) -> Result<GraphOp, GraphMutationError>
pub fn remove_node_tx( &self, id: NodeId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn add_port_tx( &self, id: PortId, port: Port, insert: PortInsert, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
pub fn add_port_ops( &self, id: PortId, port: Port, insert: PortInsert, ) -> Result<Vec<GraphOp>, GraphMutationError>
pub fn remove_port_op(&self, id: PortId) -> Result<GraphOp, GraphMutationError>
pub fn remove_port_ops( &self, id: PortId, ) -> Result<Vec<GraphOp>, GraphMutationError>
pub fn disconnect_port_ops( &self, id: PortId, ) -> Result<Vec<GraphOp>, GraphMutationError>
pub fn remove_port_tx( &self, id: PortId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Source§impl GraphMutationPlanner<'_>
impl GraphMutationPlanner<'_>
pub fn remove_sticky_note_op( &self, id: StickyNoteId, ) -> Result<GraphOp, GraphMutationError>
pub fn remove_sticky_note_tx( &self, id: StickyNoteId, label: impl Into<String>, ) -> Result<GraphTransaction, GraphMutationError>
Auto Trait Implementations§
impl<'a> Freeze for GraphMutationPlanner<'a>
impl<'a> RefUnwindSafe for GraphMutationPlanner<'a>
impl<'a> Send for GraphMutationPlanner<'a>
impl<'a> Sync for GraphMutationPlanner<'a>
impl<'a> Unpin for GraphMutationPlanner<'a>
impl<'a> UnsafeUnpin for GraphMutationPlanner<'a>
impl<'a> UnwindSafe for GraphMutationPlanner<'a>
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