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

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

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>

fn clone(&self) -> Self

fn clone_from(&mut self, source: &Self)

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

fn eq(&self, other: &Ptr<'b, T>) -> bool

fn ne(&self, other: &Rhs) -> bool

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

fn partial_cmp(&self, other: &Ptr<'b, T>) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

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

fn cmp(&self, other: &Ptr<'b, T>) -> Ordering

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

type Target = T

fn deref<'a>(&'a self) -> &'a T

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

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

fn hash<H: Hasher>(&self, st: &mut H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

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

fn fmt(&self, f: &mut Formatter) -> Result