Struct dynamic_graph::graph_ptr::GraphPtr [−][src]
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
impl<'id, T> GraphPtr<'id, T>
[src]
pub fn as_ptr(self) -> *const T
[src]
Returns a raw pointer to the graph node. This pointer should not be dereferenced directly and is meant to be a way to cache GraphPtrs between cleanups.
Trait Implementations
impl<'id, T> Clone for GraphPtr<'id, T>
[src]
impl<'id, T> Copy for GraphPtr<'id, T>
[src]
impl<'id, T> Eq for GraphPtr<'id, T>
[src]
impl<'id, T> Hash for GraphPtr<'id, T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, NamedNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, NamedNode<N, E>>> where
Root: RootCollection<'static, NamedNode<N, E>>,
[src]
Root: RootCollection<'static, NamedNode<N, E>>,
type Output = NamedNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, NamedNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, NamedNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, NamedNode<N, E>>> where
Root: RootCollection<'static, NamedNode<N, E>>,
[src]
Root: RootCollection<'static, NamedNode<N, E>>,
type Output = NamedNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, NamedNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, OptionNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, OptionNode<N, E>>> where
Root: RootCollection<'static, OptionNode<N, E>>,
[src]
Root: RootCollection<'static, OptionNode<N, E>>,
type Output = OptionNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, OptionNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, OptionNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, OptionNode<N, E>>> where
Root: RootCollection<'static, OptionNode<N, E>>,
[src]
Root: RootCollection<'static, OptionNode<N, E>>,
type Output = OptionNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, OptionNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, K: 'this, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, TreeNode<K, N, E>>> for Anchor<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>> where
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
[src]
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
type Output = TreeNode<'id, K, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, TreeNode<K, N, E>>) -> &Self::Output
[src]
impl<'this, 'id, K: 'this, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, TreeNode<K, N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>> where
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
[src]
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
type Output = TreeNode<'id, K, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, TreeNode<K, N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, VecNode<N, E>>> for Anchor<'this, 'id, GenericGraph<Root, VecNode<N, E>>> where
Root: RootCollection<'static, VecNode<N, E>>,
[src]
Root: RootCollection<'static, VecNode<N, E>>,
type Output = VecNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, VecNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> Index<GraphPtr<'id, VecNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, VecNode<N, E>>> where
Root: RootCollection<'static, VecNode<N, E>>,
[src]
Root: RootCollection<'static, VecNode<N, E>>,
type Output = VecNode<'id, N, E>
The returned type after indexing.
fn index(&self, dst: GraphPtr<'id, VecNode<N, E>>) -> &Self::Output
[src]
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> IndexMut<GraphPtr<'id, NamedNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, NamedNode<N, E>>> where
Root: RootCollection<'static, NamedNode<N, E>>,
[src]
Root: RootCollection<'static, NamedNode<N, E>>,
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> IndexMut<GraphPtr<'id, OptionNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, OptionNode<N, E>>> where
Root: RootCollection<'static, OptionNode<N, E>>,
[src]
Root: RootCollection<'static, OptionNode<N, E>>,
fn index_mut(
&mut self,
dst: GraphPtr<'id, OptionNode<N, E>>
) -> &mut Self::Output
[src]
&mut self,
dst: GraphPtr<'id, OptionNode<N, E>>
) -> &mut Self::Output
impl<'this, 'id, K: 'this, N: 'this, E: 'this, Root: 'this> IndexMut<GraphPtr<'id, TreeNode<K, N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, TreeNode<K, N, E>>> where
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
[src]
Root: RootCollection<'static, TreeNode<K, N, E>>,
K: Ord,
impl<'this, 'id, N: 'this, E: 'this, Root: 'this> IndexMut<GraphPtr<'id, VecNode<N, E>>> for AnchorMut<'this, 'id, GenericGraph<Root, VecNode<N, E>>> where
Root: RootCollection<'static, VecNode<N, E>>,
[src]
Root: RootCollection<'static, VecNode<N, E>>,
impl<'id, T> PartialEq<GraphPtr<'id, T>> for GraphPtr<'id, T>
[src]
Auto Trait Implementations
impl<'id, T> RefUnwindSafe for GraphPtr<'id, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'id, T> !Send for GraphPtr<'id, T>
[src]
impl<'id, T> !Sync for GraphPtr<'id, T>
[src]
impl<'id, T> Unpin for GraphPtr<'id, T>
[src]
impl<'id, T> !UnwindSafe for GraphPtr<'id, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,