pub struct GraphPtr<'id, T> { /* private fields */ }
Expand description
A checked pointer type used to access and traverse graph nodes in the crate. This pointer cannot be dereferenced and requires the parent anchor object to access the data stored in the collection.
Implementations§
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, NamedNode<N, E>>> for AnchorMut<'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 AnchorMut<'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, N: 'this, E: 'this, Root> Index<GraphPtr<'id, OptionNode<N, E>>> for AnchorMut<'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 AnchorMut<'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, K, N: 'this, E: 'this, Root> Index<GraphPtr<'id, TreeNode<K, N, E>>> for AnchorMut<'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 AnchorMut<'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,
Source§impl<'this, 'id, N: 'this, E: 'this, Root> Index<GraphPtr<'id, VecNode<N, E>>> for AnchorMut<'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 AnchorMut<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, NamedNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, NamedNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, NamedNode<N, E>>>where
Root: RootCollection<'static, NamedNode<N, E>> + 'this,
Source§impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, OptionNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, OptionNode<N, E>>>where
Root: RootCollection<'static, OptionNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, OptionNode<N, E>>> for AnchorMut<'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> IndexMut<GraphPtr<'id, TreeNode<K, N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
impl<'this, 'id, K, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, TreeNode<K, N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>>
Source§impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, VecNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
impl<'this, 'id, N: 'this, E: 'this, Root> IndexMut<GraphPtr<'id, VecNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, VecNode<N, E>>>where
Root: RootCollection<'static, VecNode<N, E>> + 'this,
impl<'id, T> Copy for GraphPtr<'id, T>
impl<'id, T> Eq for GraphPtr<'id, T>
Auto Trait Implementations§
impl<'id, T> Freeze for GraphPtr<'id, T>
impl<'id, T> RefUnwindSafe for GraphPtr<'id, T>where
T: RefUnwindSafe,
impl<'id, T> !Send for GraphPtr<'id, T>
impl<'id, T> !Sync for GraphPtr<'id, T>
impl<'id, T> Unpin for GraphPtr<'id, T>
impl<'id, T> UnwindSafe for GraphPtr<'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