pub struct CursorMut<'this, 'id, T: 'this> { /* private fields */ }Expand description
A wrapper over a GraphPtr which provides simplified access to AnchorMut API.
Implementations§
Source§impl<'this, 'id, N: 'this, NodeType> CursorMut<'this, 'id, NodeType>where
NodeType: GraphNode<Node = N> + 'this,
impl<'this, 'id, N: 'this, NodeType> CursorMut<'this, 'id, NodeType>where
NodeType: GraphNode<Node = N> + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
Source§impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
Source§impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, NamedNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, NamedNode<N, E>>
Sourcepub fn edges_mut(
&mut self,
) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, NamedNode<N, E>>>>
pub fn edges_mut( &mut self, ) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, NamedNode<N, E>>>>
Returns a mutable iterator over edges and node pointers attached to the current node.
Sourcepub fn bridge(
&mut self,
dst: GraphPtr<'id, NamedNode<N, E>>,
) -> Option<(&mut NamedNode<'id, N, E>, &mut NamedNode<'id, N, E>)>
pub fn bridge( &mut self, dst: GraphPtr<'id, NamedNode<N, E>>, ) -> Option<(&mut NamedNode<'id, N, E>, &mut NamedNode<'id, N, E>)>
Provides direct mutable access to current and dst nodes or or None if current is the same as dst.
Returns mutable views into the current and dst nodes or None if current is the same as dst.
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, VecNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, VecNode<N, E>>
Sourcepub fn edges_mut(
&mut self,
) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, VecNode<N, E>>>>
pub fn edges_mut( &mut self, ) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, VecNode<N, E>>>>
Returns a mutable iterator over edges and node pointers attached to the current node.
Sourcepub fn bridge(
&mut self,
dst: GraphPtr<'id, VecNode<N, E>>,
) -> Option<(&mut VecNode<'id, N, E>, &mut VecNode<'id, N, E>)>
pub fn bridge( &mut self, dst: GraphPtr<'id, VecNode<N, E>>, ) -> Option<(&mut VecNode<'id, N, E>, &mut VecNode<'id, N, E>)>
Provides direct mutable access to current and dst nodes or or None if current is the same as dst.
Returns mutable views into the current and dst nodes or None if current is the same as dst.
Source§impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
impl<'this, 'id, N: 'this, E: 'this> CursorMut<'this, 'id, OptionNode<N, E>>
Sourcepub fn edges_mut(
&mut self,
) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, OptionNode<N, E>>>>
pub fn edges_mut( &mut self, ) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, OptionNode<N, E>>>>
Returns a mutable iterator over edges and node pointers attached to the current node.
Sourcepub fn bridge(
&mut self,
dst: GraphPtr<'id, OptionNode<N, E>>,
) -> Option<(&mut OptionNode<'id, N, E>, &mut OptionNode<'id, N, E>)>
pub fn bridge( &mut self, dst: GraphPtr<'id, OptionNode<N, E>>, ) -> Option<(&mut OptionNode<'id, N, E>, &mut OptionNode<'id, N, E>)>
Provides direct mutable access to current and dst nodes or or None if current is the same as dst.
Returns mutable views into the current and dst nodes or None if current is the same as dst.
Source§impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
impl<'this, 'id, K, N: 'this, E: 'this> CursorMut<'this, 'id, TreeNode<K, N, E>>where
K: Ord + 'this,
Sourcepub fn edges_mut(
&mut self,
) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, TreeNode<K, N, E>>>>
pub fn edges_mut( &mut self, ) -> impl Iterator<Item = GraphItem<Edge<&mut N, &mut E>, GraphPtr<'id, TreeNode<K, N, E>>>>
Returns a mutable iterator over edges and node pointers attached to the current node.
Sourcepub fn bridge(
&mut self,
dst: GraphPtr<'id, TreeNode<K, N, E>>,
) -> Option<(&mut TreeNode<'id, K, N, E>, &mut TreeNode<'id, K, N, E>)>
pub fn bridge( &mut self, dst: GraphPtr<'id, TreeNode<K, N, E>>, ) -> Option<(&mut TreeNode<'id, K, N, E>, &mut TreeNode<'id, K, N, E>)>
Provides direct mutable access to current and dst nodes or or None if current is the same as dst.
Returns mutable views into the current and dst nodes or None if current is the same as dst.