pub struct Anchor<'this, 'id, T>where
T: GraphImpl + 'this,{ /* private fields */ }Implementations§
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, OptionNode<N, E>>>where
Root: RootCollection<'static, OptionNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, OptionNode<N, E>>>where
Root: RootCollection<'static, OptionNode<N, E>> + 'this,
Sourcepub fn edges(
&self,
src: GraphPtr<'id, OptionNode<N, E>>,
) -> impl Iterator<Item = GraphItem<Edge<&N, &E>, GraphPtr<'id, OptionNode<N, E>>>>
pub fn edges( &self, src: GraphPtr<'id, OptionNode<N, E>>, ) -> impl Iterator<Item = GraphItem<Edge<&N, &E>, GraphPtr<'id, OptionNode<N, E>>>>
Returns an iterator over edges attached to src node.
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
Source§impl<'this, 'id, K, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
impl<'this, 'id, K, N: 'this, E: 'this, Root> Anchor<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
Source§impl<'this, 'id, N: 'this, NodeType, Root> Anchor<'this, 'id, GenericGraph<Root, NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
Root: RootCollection<'static, NodeType> + 'this,
impl<'this, 'id, N: 'this, NodeType, Root> Anchor<'this, 'id, GenericGraph<Root, NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
Root: RootCollection<'static, NodeType> + 'this,
Sourcepub unsafe fn from_raw(&self, raw: *const NodeType) -> GraphPtr<'id, NodeType>
pub unsafe fn from_raw(&self, raw: *const NodeType) -> GraphPtr<'id, NodeType>
Creates a checked pointer from a raw pointer.
§Safety
Caller must guarantee raw points to a node which was not cleaned up and belongs to the parent graph.
Source§impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, VecGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, VecGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
Source§impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, NamedGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, NamedGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
Sourcepub fn root(&self) -> &RootNamedSet<'id, NodeType>
pub fn root(&self) -> &RootNamedSet<'id, NodeType>
Provides direct access to the collection of the root.
Source§impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, OptionGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
impl<'this, 'id, N: 'this, NodeType> Anchor<'this, 'id, OptionGraph<NodeType>>where
NodeType: GraphNode<Node = N> + 'this,
Sourcepub fn root(&self) -> &RootOption<'id, NodeType>
pub fn root(&self) -> &RootOption<'id, NodeType>
Provides direct access to the collection of the root.
Trait Implementations§
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, NamedNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, NamedNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, OptionNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, OptionNode<N, E>>>where
Root: RootCollection<'static, OptionNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, OptionNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, OptionNode<N, E>>>where
Root: RootCollection<'static, OptionNode<N, E>> + 'this,
Source§impl<'this, 'id, K, N: 'this, E: 'this, Root> Index<GraphPtr<'id, TreeNode<K, N, E>>> for Anchor<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
impl<'this, 'id, K, N: 'this, E: 'this, Root> Index<GraphPtr<'id, TreeNode<K, N, E>>> for Anchor<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, VecNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, VecNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
Auto Trait Implementations§
impl<'this, 'id, T> Freeze for Anchor<'this, 'id, T>
impl<'this, 'id, T> RefUnwindSafe for Anchor<'this, 'id, T>where
T: RefUnwindSafe,
impl<'this, 'id, T> Send for Anchor<'this, 'id, T>where
T: Sync,
impl<'this, 'id, T> Sync for Anchor<'this, 'id, T>where
T: Sync,
impl<'this, 'id, T> Unpin for Anchor<'this, 'id, T>
impl<'this, 'id, T> UnwindSafe for Anchor<'this, 'id, T>where
T: RefUnwindSafe,
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