Struct daggy::petgraph::graphmap::Ptr
[−]
[src]
pub struct Ptr<'b, T> where 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) -> Ptr<'b, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'b, T> PartialEq<Ptr<'b, T>> for Ptr<'b, T>
fn eq(&self, other: &Ptr<'b, T>) -> bool
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>
fn partial_cmp(&self, other: &Ptr<'b, T>) -> Option<Ordering>
impl<'b, T> Ord for Ptr<'b, T>
fn cmp(&self, other: &Ptr<'b, T>) -> Ordering
Ptr is ordered by pointer value, i.e. an arbitrary but stable and total order.