Struct daggy::petgraph::graphmap::Ptr [] [src]

pub struct Ptr<'b, T>(pub &'b T) where T: 'b;

A reference that is hashed and compared by its pointer value.

Ptr is used for certain configurations of GraphMap, in particular in the combination where the node type for GraphMap is something of type for example Ptr(&Cell<T>), with the Cell<T> being TypedArena allocated.

Trait Implementations

impl<'b, T> Copy for Ptr<'b, T>

impl<'b, T> Clone for Ptr<'b, T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'b, T> PartialEq<Ptr<'b, T>> for Ptr<'b, T>

Ptr compares by pointer equality, i.e if they point to the same value

impl<'b, T> PartialOrd<Ptr<'b, T>> for Ptr<'b, T>

impl<'b, T> Ord for Ptr<'b, T>

Ptr is ordered by pointer value, i.e. an arbitrary but stable and total order.

impl<'b, T> Deref for Ptr<'b, T>

impl<'b, T> Eq for Ptr<'b, T>

impl<'b, T> Hash for Ptr<'b, T>

impl<'b, T> Debug for Ptr<'b, T> where T: Debug

Formats the value using the given formatter.