Struct dynamic_graph::graph_ptr::GraphPtr[][src]

#[repr(transparent)]pub struct GraphPtr<'id, T> { /* fields omitted */ }

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]

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]

type Output = NamedNode<'id, N, E>

The returned type after indexing.

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]

type Output = NamedNode<'id, N, E>

The returned type after indexing.

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]

type Output = OptionNode<'id, N, E>

The returned type after indexing.

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]

type Output = OptionNode<'id, N, E>

The returned type after indexing.

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]

type Output = TreeNode<'id, K, N, E>

The returned type after indexing.

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]

type Output = TreeNode<'id, K, N, E>

The returned type after indexing.

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]

type Output = VecNode<'id, N, E>

The returned type after indexing.

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]

type Output = VecNode<'id, N, E>

The returned type after indexing.

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]

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]

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.