pub struct GraphMutationBatchPlanner<'a> { /* private fields */ }Expand description
Plans a small transaction while tracking ids created by earlier staged ops.
Implementations§
Source§impl<'a> GraphMutationBatchPlanner<'a>
impl<'a> GraphMutationBatchPlanner<'a>
pub fn new(graph: &'a Graph) -> Self
pub fn is_empty(&self) -> bool
pub fn into_ops(self) -> Vec<GraphOp>
pub fn into_transaction(self, label: impl Into<String>) -> GraphTransaction
pub fn add_node_with_ports( &mut self, id: NodeId, node: Node, ports: impl IntoIterator<Item = (PortId, Port)>, ) -> Result<(), GraphMutationError>
pub fn add_edge( &mut self, id: EdgeId, edge: Edge, ) -> Result<(), GraphMutationError>
pub fn set_edge_endpoints( &mut self, id: EdgeId, to: EdgeEndpoints, ) -> Result<(), GraphMutationError>
Auto Trait Implementations§
impl<'a> Freeze for GraphMutationBatchPlanner<'a>
impl<'a> RefUnwindSafe for GraphMutationBatchPlanner<'a>
impl<'a> Send for GraphMutationBatchPlanner<'a>
impl<'a> Sync for GraphMutationBatchPlanner<'a>
impl<'a> Unpin for GraphMutationBatchPlanner<'a>
impl<'a> UnsafeUnpin for GraphMutationBatchPlanner<'a>
impl<'a> UnwindSafe for GraphMutationBatchPlanner<'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