pub struct ControlledGraph { /* private fields */ }Expand description
XyFlow-style controlled graph state for adapter-owned node/edge arrays.
Implementations§
Source§impl ControlledGraph
impl ControlledGraph
pub fn new(graph: Graph) -> Self
pub fn graph(&self) -> &Graph
pub fn graph_mut(&mut self) -> &mut Graph
pub fn into_graph(self) -> Graph
pub fn apply_changes( &mut self, changes: &NodeGraphChanges, ) -> ApplyChangesReport
pub fn apply_patch_changes( &mut self, patch: &NodeGraphPatch, ) -> ApplyChangesReport
pub fn apply_node_changes( &mut self, changes: &[NodeChange], ) -> ApplyChangesReport
pub fn apply_edge_changes( &mut self, changes: &[EdgeChange], ) -> ApplyChangesReport
Trait Implementations§
Source§impl Clone for ControlledGraph
impl Clone for ControlledGraph
Source§fn clone(&self) -> ControlledGraph
fn clone(&self) -> ControlledGraph
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 moreAuto Trait Implementations§
impl Freeze for ControlledGraph
impl RefUnwindSafe for ControlledGraph
impl Send for ControlledGraph
impl Sync for ControlledGraph
impl Unpin for ControlledGraph
impl UnsafeUnpin for ControlledGraph
impl UnwindSafe for ControlledGraph
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