Struct petgraph::graphmap::Ptr [−][src]
pub struct Ptr<'b, T: 'b>(pub &'b T);
Expand description
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'b, T> RefUnwindSafe for Ptr<'b, T> where
T: RefUnwindSafe,
impl<'b, T> UnwindSafe for Ptr<'b, T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.